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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x1b4
mov eax, dword [0x1854370]
xor eax, esp
mov dword [esp + 0x1b0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], 0
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x60], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], 0
jne 0x165da9e
push 0x17ff8d8
call fcn.012a98c0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.016664c7
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [eax + 0x10]
lea ecx, [eax + 0x10]
mov dword [esp + 0x6c], ecx
test edx, edx
je 0x165dab4
mov ecx, edx
mov dword [esp + 0x5c], edx
jmp 0x165dad4
cmp dword [eax + 0xc], 0
je 0x165dace
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
push ecx
push 0x17ffb50
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx]
mov dword [esp + 0x5c], ecx
test ecx, ecx
jne 0x165dafe
push 0x17ff894
call fcn.012a98c0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.016664c7
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0
mov dword [esp + 0x70], eax
jne 0x165db30
push 0x2c
call fcn.01666532
add esp, 4
test eax, eax
je 0x165db2b
mov ecx, eax
call fcn.0165af20
jmp 0x165db2d
xor eax, eax
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
lea edx, [esp + 0x58]
push edi
push edx
mov dword [esp + 0x48], esi
call fcn.01288ed0
mov eax, dword [esp + 0x60]
add esp, 8
mov dword [esp + 0x38], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 0
push 0x28
lea ecx, [esp + 0x40]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x74], ebx
mov byte [esp + 0x3f], 0
call fcn.0128ee40
mov ecx, dword [esp + 0x60]
cmp eax, 0xffffffff
setne al
movzx edx, al
neg edx
sbb edx, edx
lea eax, [esp + 0x3f]
test eax, edx
mov edx, dword [ecx + 4]
je 0x165e08e
test byte [edx + 8], 2
mov dword [esp + 0x78], 3
je 0x165dbfe
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 0xc]
mov edi, dword [esp + 0x70]
push eax
mov ecx, edi
call fcn.01289e60
test eax, eax
js 0x165dbfe
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, edi
call fcn.01287df0
lea ecx, [esp + 0x80]
call fcn.01288090
push eax
lea ecx, [esp + 0x3c]
call fcn.0128f7b0
lea ecx, [esp + 0x80]
call fcn.012880b0
mov ecx, dword [esp + 0x48]
push eax
call fcn.0128f7b0
push 0
push 0x28
lea ecx, [esp + 0x40]
call fcn.0128ee40
push eax
lea ecx, [esp + 0x3c]
call fcn.012905c0
test esi, esi
jne 0x165dd09
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + 8]
mov eax, dword [esp + 0x58]
add ecx, 2
cmp dword [eax + 8], ecx
jle 0x165dd09
mov eax, dword [eax + 0xc]
push 0xffffffffffffffff
push eax
mov byte [esp + 0x3f], 1
call fcn.012735b0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 8]
add esp, 8
push 0xffffffffffffffff
inc eax
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x50]
call fcn.01274b10
mov edx, dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x44], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x50]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165dc8a
mov edx, dword [esp + 0x50]
push edx
call fcn.01273020
add esp, 4
mov dword [esp + 0x30], 0x184c074
mov eax, 0x184c074
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x64]
xor cl, cl
xor bl, bl
cmp dword [eax + 8], 0
mov dword [esp + 0x7c], edx
mov dword [esp + 0x50], 0
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3d], bl
jle 0x165dd46
mov edx, dword [esp + 0x7c]
mov ax, word [edx]
inc dword [esp + 0x50]
add edx, 2
mov word [esp + 0x40], ax
mov dword [esp + 0x7c], edx
mov edx, 0xff
cmp dx, ax
sbb al, al
not al
and al, byte [esp + 0x40]
movsx eax, al
add eax, 0xffffffe0
cmp eax, 0x54
ja case.0x165dd02.33
movzx eax, byte [eax + 0x165e778]
jmp dword [eax*4 + 0x165e758]
mov byte [esp + 0x37], 0
jmp 0x165e0f0
test bl, bl
je case.0x165dd02.33
mov ecx, 0xa
mov word [esp + 0x40], cx
mov ecx, dword [esp + 0x40]
xor bl, bl
mov byte [esp + 0x3d], bl
push ecx
lea ecx, [esp + 0x34]
call fcn.01267975
mov cl, byte [esp + 0x3e]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
cmp edx, dword [eax + 8]
jl 0x165dcc9
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], esi
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165dd6c
mov eax, dword [esp + 0x30]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x44]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165e0f0
mov eax, dword [esp + 0x44]
push eax
call fcn.01273020
add esp, 4
jmp 0x165e0f0
test bl, bl
je case.0x165dd02.33
mov edx, 0xd
mov word [esp + 0x40], dx
jmp case.0x165dd02.33
test bl, bl
je case.0x165dd02.33
mov eax, 9
mov word [esp + 0x40], ax
jmp case.0x165dd02.33
test bl, bl
jne case.0x165dd02.33
test cl, cl
je case.0x165dd02.33
mov bl, 1
mov byte [esp + 0x3d], bl
jmp 0x165dd39
test bl, bl
jne case.0x165dd02.33
mov edx, dword [esp + 0x40]
test cl, cl
sete cl
mov byte [esp + 0x3e], cl
push edx
jmp 0x165dd2c
test cl, cl
jne case.0x165dd02.33
mov eax, dword [esp + 0x30]
cmp dword [eax + 8], 0
je 0x165dd39
jmp case.0x165dd02.33
test cl, cl
jne case.0x165dd02.33
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x34]
call fcn.01274ef0
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
mov dword [esp + 0x30], edx
mov dword [eax], ecx
lea ecx, [esp + 0x54]
call fcn.01261000
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
cmp word [eax], 0x22
jne 0x165dea3
mov ecx, dword [ecx + 8]
cmp word [eax + ecx*2 - 2], 0x22
jne 0x165dea3
add ecx, 0xfffffffe
push ecx
push 1
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x3c]
call fcn.01274b10
push eax
lea ecx, [esp + 0x12c]
call fcn.012a23b0
lea ecx, [esp + 0x128]
push ecx
mov ecx, edi
call fcn.0126e5f0
lea ecx, [esp + 0x128]
call fcn.012a03b0
lea ecx, [esp + 0xbc]
call fcn.01261000
lea ecx, [esp + 0x30]
call fcn.01267a06
jmp 0x165dd35
push 0xa
lea edx, [esp + 0x53]
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x57], 0
mov byte [esp + 0x47], 0
call fcn.012737b0
mov esi, eax
lea eax, [esp + 0x3f]
push eax
lea ecx, [esp + 0x34]
call fcn.01273890
cmp byte [esp + 0x4f], 0
je 0x165df0c
push esi
fstp st(0)
lea ecx, [esp + 0x11c]
call fcn.012a1170
lea ecx, [esp + 0x118]
push ecx
mov ecx, edi
call fcn.0126e5f0
lea ecx, [esp + 0x118]
call fcn.012a03b0
lea ecx, [esp + 0x30]
call fcn.01267a06
jmp 0x165dd35
cmp byte [esp + 0x3f], 0
je 0x165df4e
sub esp, 8
lea ecx, [esp + 0x110]
fstp qword [esp]
call fcn.012a1210
lea edx, [esp + 0x108]
push edx
mov ecx, edi
call fcn.0126e5f0
lea ecx, [esp + 0x108]
call fcn.012a03b0
lea ecx, [esp + 0x30]
call fcn.01267a06
jmp 0x165dd35
mov ecx, dword [esp + 0x70]
fstp st(0)
xor edi, edi
call fcn.01287b00
test eax, eax
jle 0x165e00e
mov esi, dword [esp + 0x70]
push edi
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.01287e60
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x34]
call fcn.01274d20
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x9c]
call fcn.01288110
lea ecx, [esp + 0xc0]
mov esi, eax
call fcn.012617d1
cmp esi, 0xffffffff
je 0x165dfd8
or dword [esp + 0x68], 1
push esi
lea ecx, [esp + 0x9c]
call fcn.01288270
push eax
lea ecx, [esp + 0x84]
call fcn.0128e840
mov eax, dword [eax]
cmp dword [eax + 8], 0
je 0x165dfd8
mov bl, 1
jmp 0x165dfda
xor bl, bl
test byte [esp + 0x68], 1
je 0x165dff2
and dword [esp + 0x68], 0xfffffffe
lea ecx, [esp + 0x80]
call fcn.012617d1
test bl, bl
jne 0x165e04e
mov esi, dword [esp + 0x70]
mov ecx, esi
inc edi
call fcn.01287b00
cmp edi, eax
jl 0x165df67
mov bl, byte [esp + 0x3d]
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xa4]
call fcn.012a23b0
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0xa0]
push eax
call fcn.0126e5f0
lea ecx, [esp + 0xa0]
call fcn.012a03b0
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x30]
call fcn.01267a06
jmp 0x165dd35
push esi
lea ecx, [esp + 0xfc]
call fcn.012a1170
lea ecx, [esp + 0xf8]
push ecx
mov ecx, dword [esp + 0x68]
call fcn.0126e5f0
lea ecx, [esp + 0xf8]
call fcn.012a03b0
mov bl, byte [esp + 0x3d]
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x30]
call fcn.01267a06
jmp 0x165dd35
test byte [edx + 8], 2
je 0x165e0d1
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0xc]
mov edi, dword [esp + 0x70]
push eax
mov ecx, edi
call fcn.01287c80
test eax, eax
js 0x165e0d1
push eax
lea ecx, [esp + 0xa4]
push ecx
mov ecx, edi
call fcn.01288b20
lea ecx, [esp + 0xa0]
call fcn.012882f0
mov ecx, dword [esp + 0x48]
push eax
call fcn.0128f7b0
cmp esi, 1
jne 0x165e0e8
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 4
jmp 0x165e0f8
mov dword [esp + 0x78], 2
test esi, esi
je 0x165e37c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 0x58]
push edx
call fcn.0165c870
mov dword [esp + 0x80], eax
cmp esi, eax
lea eax, [esp + 0x40]
jl 0x165e122
lea eax, [esp + 0x80]
mov esi, dword [eax]
mov dword [esp + 0x40], esi
cmp esi, 8
jg 0x165e13a
lea edx, [esp + 0x138]
mov dword [esp + 0x74], edx
jmp 0x165e159
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0166459c
add esp, 4
mov dword [esp + 0x74], eax
xor ebx, ebx
test esi, esi
jle 0x165e37c
mov ecx, dword [esp + 0x74]
mov eax, esi
add eax, eax
lea edi, [ecx + eax*8 - 0x10]
nop
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
add ecx, ebx
mov edx, dword [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x84]
call fcn.012a0f80
push edi
call dword [fcn.016d5390]
mov byte [esp + 0x44], 0
mov dword [esp + 0x30], 0x184c178
mov eax, 0x184c178
mov ecx, 1
lock xadd dword [eax], ecx
cmp word [esp + 0x78], 4
jne 0x165e1c6
mov edx, dword [esp + 0x48]
push edx
lea ecx, [esp + 0x34]
call fcn.01273030
jmp 0x165e22a
cmp byte [esp + 0x37], 0
jne 0x165e21f
cmp word [esp + 0x78], 2
je 0x165e21f
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x64]
push ebx
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 0x88]
push edx
call fcn.0165c8d0
mov edx, dword [eax]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x7c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e231
mov edx, dword [esp + 0x7c]
push edx
call fcn.01285a10
add esp, 4
jmp 0x165e231
push 0
lea ecx, [esp + 0x34]
call fcn.0128f7b0
cmp byte [esp + 0x37], 0
jne 0x165e24f
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 4]
test byte [ecx + 8], 2
je 0x165e24f
lea ecx, [esp + 0x80]
call fcn.012a03f0
cmp eax, 0xa
je 0x165e264
lea ecx, [esp + 0x80]
call fcn.012a03f0
cmp eax, 0xc
jne 0x165e329
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x70]
push eax
call fcn.01287bd0
cmp eax, 0xffffffff
je 0x165e329
mov ecx, dword [esp + 0x70]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.01287e60
push 0x1831428
lea ecx, [esp + 0x54]
call fcn.0128e840
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x84]
call fcn.012a1930
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [esp + 0x9c]
call fcn.01288110
push eax
lea ecx, [esp + 0xa4]
call fcn.012a1170
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0xa8]
push edi
push edx
call fcn.01660f60
add esp, 0x10
lea ecx, [esp + 0xa0]
call fcn.012a03b0
mov eax, dword [esp + 0x54]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e30f
mov edx, dword [esp + 0x54]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [esp + 0x50]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e329
mov edx, dword [esp + 0x50]
push edx
call fcn.01285a10
add esp, 4
cmp word [edi], 0
jne 0x165e34a
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x88]
push edi
push edx
call fcn.01660f60
add esp, 0x10
mov eax, dword [esp + 0x30]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e364
mov edx, dword [esp + 0x30]
push edx
call fcn.01285a10
add esp, 4
lea ecx, [esp + 0x80]
call fcn.012a03b0
inc ebx
sub edi, 0x10
cmp ebx, esi
jl 0x165e170
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + 0x1c]
call fcn.01658c70
mov edi, eax
cmp edi, 0xffffffff
jne 0x165e3c3
or dword [esp + 0x68], 2
push 0x17ff610
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x40]
call fcn.0128fee0
mov ecx, eax
call fcn.0128e570
test al, al
je 0x165e3c3
mov bl, 1
jmp 0x165e3c5
xor bl, bl
test byte [esp + 0x68], 2
je 0x165e3e6
mov edx, dword [esp + 0x54]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x165e3e6
mov ecx, dword [esp + 0x54]
push ecx
call fcn.01285a10
add esp, 4
test bl, bl
je 0x165e444
push 0xffffffffffffffff
push 3
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x44]
call fcn.0128efb0
mov edx, dword [eax]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e422
mov edx, dword [esp + 0x54]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + 0x1c]
call fcn.01658c70
mov edi, eax
mov ebx, 4
jmp 0x165e448
mov ebx, dword [esp + 0x78]
cmp edi, 0xffffffff
jne 0x165e4b2
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x38]
movzx edx, bx
push ecx
push edx
lea ecx, [esp + 0x60]
call fcn.016530b0
mov eax, dword [esp + 0x40]
add esp, 8
or ecx, edi
lock xadd dword [eax], ecx
jne 0x165e47f
mov edx, dword [esp + 0x38]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [esp + 0x58]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165e499
mov edx, dword [esp + 0x58]
push edx
call fcn.01285a10
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.016664c7
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
cmp bx, 4
sete al
xor ecx, ecx
cmp bx, 4
setne cl
lea edx, [esp + 0xc4]
mov dword [esp + 0xc4], 0xfffffffd
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc8], eax
dec ecx
and ecx, edx
lea edx, [esp + 0x94]
push edx
lea edx, [esp + 0xdc]
push edx
mov edx, dword [esp + 0x74]
push edx
xor eax, eax
lea edx, [esp + 0xd4]
push edx
push ebx
push 0x400
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x74]
push 0x17f6c2c
mov dword [esp + 0xe8], ecx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x18]
call eax
mov dword [esp + 0x6c], eax
cmp bx, 3
jne 0x165e673
test eax, eax
jne 0x165e673
test esi, esi
je 0x165e699
xor edi, edi
test esi, esi
jle 0x165e699
mov edx, dword [esp + 0x74]
mov ecx, esi
add ecx, ecx
lea eax, [edx + ecx*8 - 0x10]
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x5c]
mov ecx, 0x4000
test word [edx], cx
je 0x165e665
mov ebx, dword [esp + 0x64]
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
add ecx, edi
mov ecx, dword [eax + ecx*4 + 0x14]
call fcn.012a13a0
push eax
lea ecx, [esp + 0x4c]
call fcn.0128e840
mov eax, dword [esp + 0x5c]
push 0
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x104]
push ecx
call fcn.01662210
add esp, 0x10
push edi
mov ecx, ebx
mov esi, eax
call fcn.0126ed70
mov ebx, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], ebx
mov ebx, dword [esi]
mov dword [eax], ebx
mov ebx, dword [esi + 4]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 8]
mov dword [eax + 8], ebx
mov ebx, dword [esi + 0xc]
mov dword [eax + 0xc], ebx
mov eax, dword [esp + 0xac]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov edx, dword [esp + 0xa8]
mov dword [esi + 8], edx
lea ecx, [esp + 0xf8]
mov dword [esi + 0xc], eax
call fcn.012a03b0
mov ecx, dword [esp + 0x48]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165e661
mov eax, dword [esp + 0x48]
push eax
call fcn.01285a10
add esp, 4
mov esi, dword [esp + 0x40]
sub dword [esp + 0x5c], 0x10
inc edi
cmp edi, esi
jl 0x165e5a7
test esi, esi
jle 0x165e699
xor edi, edi
mov ebx, esi
jmp 0x165e680
mov ecx, dword [esp + 0xc8]
lea edx, [edi + ecx]
push edx
call fcn.01660e60
add esp, 4
add edi, 0x10
dec ebx
jne 0x165e680
mov eax, dword [esp + 0x74]
test eax, eax
je 0x165e6b5
lea ecx, [esp + 0x138]
cmp eax, ecx
je 0x165e6b5
push eax
call fcn.01666eba
add esp, 4
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push eax
call fcn.012735b0
mov edi, dword [esp + 0x68]
mov dword [esp + 0x50], eax
mov ecx, esi
sub ecx, dword [esp + 0x9c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x78]
dec ecx
lea edx, [esp + 0xe4]
call fcn.01652b30
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov bl, al
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165e70a
mov eax, dword [esp + 0x48]
push eax
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x38]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165e724
mov eax, dword [esp + 0x38]
push eax
call fcn.01285a10
add esp, 4
mov ecx, dword [esp + 0x58]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x165e73e
mov eax, dword [esp + 0x58]
push eax
call fcn.01285a10
add esp, 4
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.016664c7
mov esp, ebp
pop ebp
ret 0x10