Function at 0x1659590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x1854370]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x11c], ebx
mov eax, dword [esi + 0x18]
push edi
mov dword [esp + 0x54], ebx
cmp eax, ebx
je 0x1659b67
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push 0x17ffc70
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x1659b67
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
lea edi, [esi + 0x24]
push edi
push eax
call edx
mov edi, dword [edi]
mov dword [esp + 0x24], ebx
cmp edi, ebx
je 0x165960a
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x24]
push ecx
push edi
call edx
mov dword [esp + 0x18], 0x184c074
mov eax, 0x184c074
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x165999f
push eax
lea ecx, [esp + 0x1e0]
call fcn.0164e3e0
lea edx, [esp + 0x114]
push edx
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x1e4]
call fcn.0169b790
mov ecx, eax
call 0x12779a0
mov edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x114]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659688
mov edx, dword [esp + 0x114]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0xe8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x16596a8
mov edx, dword [esp + 0xe8]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esi + 0x18]
test byte [eax + 8], 4
je 0x165998d
push 0x17ff414
mov ecx, esi
call fcn.01654a70
test al, al
jne 0x165998d
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x17c]
call fcn.012a23b0
push 0xffffffffffffffff
push 0x17ff640
call fcn.012735b0
push 0xffffffffffffffff
push 0x17ff7a8
mov dword [esp + 0xa0], eax
call fcn.012735b0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x30], edi
mov edx, edi
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x34]
call fcn.01274620
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x48]
call fcn.01274620
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x17c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1d4]
push ecx
lea ecx, [esi + 0x30]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
lea ecx, [esp + 0x1c8]
call fcn.012a03b0
mov edx, dword [esp + 0x44]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x165978c
mov ecx, dword [esp + 0x44]
push ecx
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x30]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x16597a6
mov ecx, dword [esp + 0x30]
push ecx
call fcn.01273020
add esp, 4
mov edx, edi
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x16597ba
push edi
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x90]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x16597da
mov eax, dword [esp + 0x90]
push eax
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x178]
call fcn.012a03b0
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 8], ebx
jne 0x1659802
lea edx, [esp + 0x118]
mov ebx, 1
push edx
lea ecx, [esp + 0x1c]
jmp 0x1659813
lea eax, [esp + 0x11c]
mov ebx, 2
push eax
lea ecx, [esp + 0x3c]
call fcn.01274d20
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
push eax
push 0x17ff414
mov ecx, esi
call fcn.01655740
test bl, 2
je 0x1659852
mov edx, dword [esp + 0x11c]
and ebx, 0xfffffffd
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659852
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.01285a10
add esp, 4
test bl, 1
je 0x1659877
mov edx, dword [esp + 0x118]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659877
mov ecx, dword [esp + 0x118]
push ecx
call fcn.01285a10
add esp, 4
mov edx, dword [esp + 0x24]
movzx eax, word [edx + 0x3a]
push 0xa
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.01290490
mov edx, dword [esp + 0x30]
add esp, 0xc
push eax
movzx eax, word [edx + 0x38]
push 0x2e
push 0xa
push eax
lea ecx, [esp + 0x114]
push ecx
call fcn.01290490
add esp, 0xc
push eax
lea edx, [esp + 0xf0]
push edx
call fcn.016519e0
add esp, 0xc
push eax
lea eax, [esp + 0x64]
push eax
call fcn.01262c30
mov ecx, dword [esp + 0xf0]
add esp, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x16598ef
mov eax, dword [esp + 0xe4]
push eax
call fcn.01285a10
add esp, 4
mov ecx, dword [esp + 0x104]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165990f
mov eax, dword [esp + 0x104]
push eax
call fcn.01285a10
add esp, 4
mov ecx, dword [esp + 0xec]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165992f
mov eax, dword [esp + 0xec]
push eax
call fcn.01285a10
add esp, 4
lea ecx, [esp + 0x5c]
push 0x17ff7a4
push ecx
call fcn.012ae8b0
add esp, 8
test al, al
je 0x1659959
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0xc]
push eax
push 0x17ff79c
mov ecx, esi
call fcn.01655740
mov eax, dword [esp + 0x5c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659973
mov edx, dword [esp + 0x5c]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [esp + 0x38]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165998d
mov edx, dword [esp + 0x38]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esi + 0x24]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
xor ebx, ebx
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0x18]
mov dword [esp + 0x54], ebx
test byte [eax + 8], 0x20
je 0x1659b4d
mov ecx, dword [esp + 0x18]
cmp dword [ecx + 8], ebx
je 0x1659b4d
mov edx, 0x20
mov ecx, edx
mov word [esp + 0xcc], dx
mov word [esp + 0xc6], dx
lea edx, [esp + 0xac]
push edx
mov word [esp + 0xda], cx
mov word [esp + 0xb0], cx
mov edi, dword [eax + 8]
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xe4]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x108]
push 0x17ff790
push edx
and edi, 1
call fcn.01274dc0
add esp, 0xc
mov ecx, eax
call fcn.01275630
mov ecx, eax
lea eax, [esp + 0xc6]
push eax
push 0xa
push ebx
mov eax, edi
cdq
push edx
push eax
lea edx, [esp + 0xe4]
push edx
call fcn.01279ea0
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 8]
shr eax, 2
lea ecx, [esp + 0xd6]
push ecx
push 0xa
and eax, 1
cdq
push ebx
push edx
push eax
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0xe8]
call fcn.01279ea0
movzx eax, byte [0x1853ed8]
lea ecx, [esp + 0xcc]
push ecx
push 0xa
cdq
push ebx
push edx
push eax
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0xb0]
call fcn.01279ea0
mov eax, dword [esi + 0x38]
mov ecx, dword [esp + 0xb4]
mov dword [esi + 0x38], ecx
mov dword [esp + 0xb4], eax
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1659acd
mov eax, dword [esp + 0xb4]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x98]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659aed
mov eax, dword [esp + 0x98]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xd0]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659b0d
mov eax, dword [esp + 0xd0]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xd8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659b2d
mov eax, dword [esp + 0xd8]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xf4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659b4d
mov eax, dword [esp + 0xf4]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659b67
mov eax, dword [esp + 0x18]
push eax
call fcn.01273020
add esp, 4
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x128], ebx
cmp eax, ebx
je 0x1659b8c
cmp dword [esi + 0x20], ebx
lea ecx, [esi + 0x20]
jne 0x1659b8c
mov edx, dword [eax]
push ecx
push 0x400
push ebx
push eax
mov eax, dword [edx + 0x10]
call eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x1659bac
cmp dword [esi + 0x28], ebx
lea ecx, [esi + 0x28]
jne 0x1659bac
mov edx, dword [eax]
lea edi, [esp + 0x128]
push edi
push ecx
push eax
mov eax, dword [edx + 0x48]
call eax
cmp dword [esi + 0x28], ebx
jne 0x165a526
push 0xffffffffffffffff
push 0x17ff774
call fcn.012735b0
add esp, 8
push ebx
push ebx
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0xac], eax
call fcn.012c38b0
mov edx, dword [esp + 0xa0]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659bfe
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.01273020
add esp, 4
push 0xffffffffffffffff
push 0x17ff768
call fcn.012735b0
push 0xffffffffffffffff
push 0x17ff758
mov dword [esp + 0xb8], eax
call fcn.012735b0
mov edi, eax
mov eax, dword [esi + 0x14]
mov ebx, 0x80000000
mov dword [esp + 0x150], ebx
mov dword [esp + 0x148], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x10
mov dword [esp + 0xbc], eax
mov edx, 1
lock xadd dword [eax], edx
mov dword [esp + 0x40], edi
mov eax, edi
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x44]
call fcn.01274620
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x2c]
call fcn.01274620
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1a4]
push eax
lea ecx, [esp + 0x7c]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
lea ecx, [esp + 0x198]
call fcn.012a03b0
mov ecx, dword [esp + 0x28]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659ce3
mov eax, dword [esp + 0x28]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x40]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659cfd
mov eax, dword [esp + 0x40]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xbc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659d1d
mov eax, dword [esp + 0xbc]
push eax
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x138]
call fcn.012a03b0
mov ecx, edi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659d3d
push edi
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0xa8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659d5d
mov edx, dword [esp + 0xa8]
push edx
call fcn.01273020
add esp, 4
mov dword [esp + 0x10], 0x184c074
mov eax, 0x184c074
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x68]
cmp dword [edx + 8], 0
push 0xffffffffffffffff
je 0x1659ffb
push 0x17ff744
call fcn.012735b0
mov edi, eax
add esp, 8
mov dword [esp + 0x64], edi
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x68]
call fcn.01274620
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x70]
call 0x12c6660
mov ecx, dword [esp + 0x64]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659dd5
mov eax, dword [esp + 0x64]
push eax
call fcn.01273020
add esp, 4
mov ecx, edi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1659de9
push edi
call fcn.01273020
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x70]
call 0x12c5bf0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
cmp edx, 1
je 0x1659e13
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.01262449
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 8], 0
mov edx, dword [eax + 8]
lea edi, [eax + edx*4 + 0x14]
jne 0x1659fce
jmp 0x1659e34
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
cmp edx, 1
je 0x1659e4c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x18]
call fcn.01262449
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
lea eax, [eax + edx*4 + 0x14]
cmp edi, eax
je 0x1659fce
mov eax, dword [edi]
mov dword [esp + 0x7c], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 0xffffffffffffffff
push 0x17ff738
add edi, 4
call fcn.012735b0
add esp, 8
lea edx, [esp + 0x10c]
push edx
mov dword [esp + 0x7c], eax
mov ecx, 0x2f
lea eax, [esp + 0x15c]
mov word [esp + 0x130], cx
mov edx, dword [esp + 0x130]
push eax
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x164], 0
call 0x1272fa0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
call fcn.01274620
mov eax, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x80]
push edx
lea ecx, [esp + 0x58]
call fcn.01274620
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x7c]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x10c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659f40
mov edx, dword [esp + 0x10c]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x1a8]
call fcn.012a03b0
mov eax, dword [esp + 0x4c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659f66
mov edx, dword [esp + 0x4c]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x2c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659f80
mov edx, dword [esp + 0x2c]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x158]
call fcn.012a03b0
mov eax, dword [esp + 0x78]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659fa6
mov edx, dword [esp + 0x78]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x7c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659fc0
mov edx, dword [esp + 0x7c]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x1659e30
lea ecx, [esp + 0x6c]
call 0x12c7310
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a319
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.01261eb3
jmp 0x165a319
push 0x17ff724
call fcn.012735b0
push 0xffffffffffffffff
push 0x17ff758
mov dword [esp + 0x9c], eax
call fcn.012735b0
mov edi, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x160], ebx
mov dword [esp + 0x158], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x10
mov dword [esp + 0x84], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x3c], edi
mov edx, edi
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x40]
call fcn.01274620
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x38]
call fcn.01274620
lea ecx, [esp + 0xfc]
push ecx
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x194]
push ecx
lea ecx, [esp + 0x7c]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xfc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a0e2
mov edx, dword [esp + 0xfc]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x188]
call fcn.012a03b0
mov eax, dword [esp + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a108
mov edx, dword [esp + 0x34]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x3c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a122
mov edx, dword [esp + 0x3c]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x84]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a142
mov edx, dword [esp + 0x84]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x148]
call fcn.012a03b0
mov eax, edi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a162
push edi
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x8c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x165a182
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
jne 0x165a319
push 0xffffffffffffffff
push 0x17ff710
call fcn.012735b0
push 0xffffffffffffffff
push 0x17ff758
mov dword [esp + 0xac], eax
call fcn.012735b0
mov edi, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x180], ebx
mov dword [esp + 0x178], 0
mov eax, dword [eax + 4]
mov eax, dword [eax]
add esp, 0x10
mov dword [esp + 0x94], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov dword [esp + 0x50], edi
mov edx, edi
mov eax, 1
lock xadd dword [edx], eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x54]
call fcn.01274620
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.01274620
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x1c4]
push ecx
lea ecx, [esp + 0x7c]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xdc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a279
mov edx, dword [esp + 0xdc]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x1b8]
call fcn.012a03b0
mov eax, dword [esp + 0x48]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a29f
mov edx, dword [esp + 0x48]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x50]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a2b9
mov edx, dword [esp + 0x50]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x94]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a2d9
mov edx, dword [esp + 0x94]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x168]
call fcn.012a03b0
mov eax, edi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a2f9
push edi
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x9c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x165a319
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x165a4e7
lea edi, [esi + 0x28]
push edi
lea ecx, [esp + 0x14]
call fcn.01275120
mov ebx, dword [0x16d5398]
push eax
call ebx
cmp dword [edi], 0
jne 0x165a4e7
push 0xffffffffffffffff
push 0x17ff708
call fcn.012735b0
add esp, 8
push 1
push 0xffffffffffffffff
push ecx
mov dword [esp + 0xb0], eax
mov eax, esp
mov ecx, 0x2e
mov word [eax], cx
lea ecx, [esp + 0x1c]
call 0x1274a40
push eax
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0x18]
call fcn.01274a90
mov eax, dword [eax]
mov dword [esp + 0x58], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x5c]
call fcn.01274620
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
call fcn.01273030
mov ecx, dword [esp + 0x58]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a3ce
mov eax, dword [esp + 0x58]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xe0]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a3ee
mov eax, dword [esp + 0xe0]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0xa4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a40e
mov eax, dword [esp + 0xa4]
push eax
call fcn.01273020
add esp, 4
push edi
lea ecx, [esp + 0x14]
call fcn.01275120
push eax
call ebx
cmp dword [edi], 0
jne 0x165a4e7
push 0xffffffffffffffff
push 0x17ff700
call fcn.012735b0
add esp, 8
push 1
push 0xffffffffffffffff
push ecx
mov dword [esp + 0x80], eax
mov eax, esp
mov ecx, 0x2e
mov word [eax], cx
lea ecx, [esp + 0x1c]
call 0x1274a40
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.01274a90
mov eax, dword [eax]
mov dword [esp + 0x60], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x64]
call fcn.01274620
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x14]
call fcn.01273030
mov ecx, dword [esp + 0x60]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a4a6
mov eax, dword [esp + 0x60]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a4c0
mov eax, dword [esp + 0x20]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x74]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a4da
mov eax, dword [esp + 0x74]
push eax
call fcn.01273020
add esp, 4
push edi
lea ecx, [esp + 0x14]
call fcn.01275120
push eax
call ebx
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a501
mov eax, dword [esp + 0x10]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x68]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165a51b
mov eax, dword [esp + 0x68]
push eax
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x6c]
call fcn.012c5010
xor ebx, ebx
cmp dword [esi + 0x24], ebx
lea edi, [esi + 0x24]
jne 0x165a5a6
cmp dword [esi + 0x28], ebx
je 0x165a5a6
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x165a5a6
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov dword [esp + 0xb0], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x214]
call fcn.0169b560
mov ecx, eax
call fcn.01651b00
mov eax, dword [esi + 0x28]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 0x200]
push ecx
push eax
call edx
mov eax, dword [esp + 0xb0]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a5a6
mov edx, dword [esp + 0xb0]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [edi]
cmp eax, ebx
je 0x165a6bc
cmp dword [esi + 0x20], ebx
jne 0x165a6bc
mov ecx, dword [eax]
lea edx, [esp + 0xb8]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [esp + 0xb8]
cmp eax, ebx
je 0x165a6bc
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x20], ebx
cmp cx, word [eax + 0x30]
jae 0x165a6af
lea ebx, [ebx]
mov eax, dword [edi]
lea ecx, [esp + 0xf0]
push ecx
mov dword [esp + 0xf4], 0
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push ebx
push eax
call edx
test byte [esp + 0xf0], 2
jne 0x165a68e
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x124]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jne 0x165a645
mov eax, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x128]
push ecx
push eax
call edx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x165a68e
mov ecx, dword [eax]
lea edx, [esp + 0x134]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [esp + 0x134]
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
movzx ebx, word [ecx + 0x28]
push ecx
push eax
mov eax, dword [edx + 0x4c]
call eax
test bl, 4
jne 0x165a6a8
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebx, dword [esp + 0x20]
mov dword [esi + 0x20], 0
mov eax, dword [esp + 0xb8]
movzx ecx, word [eax + 0x30]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, ecx
jl 0x165a5f0
jmp 0x165a6af
mov eax, dword [esp + 0xb8]
mov edi, dword [edi]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x4c]
push edi
call eax
xor ebx, ebx
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x165a906
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x165a906
mov edx, dword [esi + 0x38]
cmp dword [edx + 8], ebx
jne 0x165a906
test byte [ecx + 8], 0x20
je 0x165a906
lea edx, [esp + 0xc0]
mov dword [esp + 0xc0], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov dword [esp + 0x1c], 0x184c074
mov ecx, 0x184c074
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [esp + 0xc0]
cmp eax, ebx
je 0x165a8ec
push eax
lea ecx, [esp + 0x1f0]
call fcn.0164e3e0
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0x1f4]
call fcn.0169b790
mov ecx, eax
call 0x12779a0
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [eax], ecx
mov eax, dword [esp + 0xf8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a780
mov edx, dword [esp + 0xf8]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x100]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165a7a0
mov edx, dword [esp + 0x100]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0xc0]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 8], ebx
je 0x165a8ec
mov edx, 0x20
mov eax, edx
mov ecx, eax
mov word [esp + 0x82], cx
mov word [esp + 0xae], ax
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0xce]
push ecx
push ebx
mov word [esp + 0x92], dx
mov word [esp + 0xd6], dx
mov edi, dword [eax + 8]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x13c]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x134]
push 0x17ff790
push ecx
and edi, 1
call fcn.01274dc0
add esp, 0xc
mov ecx, eax
call fcn.01275630
mov ecx, eax
lea edx, [esp + 0x82]
push edx
push 0xa
push ebx
mov eax, edi
cdq
push edx
push eax
lea eax, [esp + 0x124]
push eax
call fcn.01279ea0
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 8]
shr eax, 2
lea ecx, [esp + 0xae]
push ecx
push 0xa
and eax, 1
cdq
push ebx
push edx
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x128]
call fcn.01279ea0
movzx eax, byte [0x1853ed8]
lea ecx, [esp + 0x8a]
push ecx
push 0xa
cdq
push ebx
push edx
push eax
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x120]
call fcn.01279ea0
mov ecx, dword [esp + 0xc8]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x38], ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0xc8], eax
call fcn.01261000
lea ecx, [esp + 0x108]
call fcn.01261000
lea ecx, [esp + 0x110]
call fcn.01261000
lea ecx, [esp + 0x130]
call fcn.01261000
lea ecx, [esp + 0x120]
call fcn.01261000
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x165a906
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.016664c7
mov esp, ebp
pop ebp
ret