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

Disassembly:
sub esp, 0xec
mov eax, dword [0x1854370]
xor eax, esp
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0xf0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
mov edi, dword [esp + 0x104]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], eax
call fcn.012a0f80
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x1660faa
xor ebp, ebp
jmp 0x1661064
mov eax, dword [eax + 0xc]
push eax
call fcn.012a0470
mov ebp, eax
add esp, 4
cmp ebp, 0x7f
jne 0x1661017
mov eax, dword [esi]
cmp dword [eax + 8], 0
je 0x1661064
push 0x16fb144
push esi
call fcn.0128e730
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
jne 0x1661010
push 0x16fb13c
push esi
call fcn.0128e730
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
jne 0x1661010
push 0x16fb124
push esi
call fcn.01267949
add esp, 8
test al, al
je 0x1661064
mov ebp, 6
jmp 0x166101b
mov ebp, 2
jmp 0x166101b
test ebp, ebp
je 0x1661064
lea ecx, [esp + 0x18]
call fcn.012a03f0
cmp ebp, eax
je 0x1661064
push ebp
lea ecx, [esp + 0x1c]
call fcn.012a1c30
push ebp
test al, al
je 0x1661042
lea ecx, [esp + 0x1c]
call fcn.012a2960
jmp 0x1661064
lea ecx, [esp + 0x94]
call 0x12a10a0
push eax
lea ecx, [esp + 0x1c]
call fcn.01262cae
lea ecx, [esp + 0x90]
call fcn.012a03b0
mov bl, byte [esp + 0x10c]
test bl, bl
je 0x1661130
mov ecx, 0x400c
cmp word [edi], cx
jne 0x16610a7
mov eax, dword [edi + 8]
test eax, eax
je 0x16610a7
mov edx, dword [esp + 0x3c]
push 0
push esi
push eax
push edx
call fcn.01660f60
add esp, 0x10
lea ecx, [esp + 0x18]
mov bl, al
call fcn.012a03b0
mov al, bl
jmp 0x1661f0c
cmp ebp, 0x7f
jne 0x1661130
push 0x18318f0
push esi
call fcn.0128e730
add esp, 8
neg eax
sbb eax, eax
inc eax
test al, al
je 0x1661130
push 0x10
call fcn.01666532
mov esi, eax
mov dword [esp + 0x34], 0x184c178
mov eax, 0x184c178
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x38]
push edx
push esi
push eax
call fcn.01660f60
mov ecx, dword [esp + 0x44]
add esp, 0x14
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1661115
mov eax, dword [esp + 0x30]
push eax
call fcn.01285a10
add esp, 4
mov ecx, 0x400c
mov word [edi], cx
lea ecx, [esp + 0x18]
mov dword [edi + 8], esi
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x18]
call fcn.012a03f0
cmp eax, 0x7f
ja case.0x1661149.7
movzx edx, byte [eax + 0x16620dc]
jmp dword [edx*4 + 0x1662094]
test bl, bl
je 0x16611b3
mov eax, 0x4008
cmp word [edi], ax
jne 0x16611b3
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x166116f
mov ecx, dword [eax]
push ecx
call dword [fcn.016d5388]
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x1c]
call fcn.012a1790
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [fcn.016d538c]
mov ecx, dword [edi + 8]
mov dword [ecx], eax
lea ecx, [esp + 0x78]
call fcn.01261000
mov edx, 0x4008
lea ecx, [esp + 0x18]
mov word [edi], dx
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x7c]
mov eax, 8
push ecx
lea ecx, [esp + 0x1c]
mov word [edi], ax
call fcn.012a1790
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push ecx
push eax
call dword [fcn.016d538c]
lea ecx, [esp + 0x7c]
mov dword [edi + 8], eax
call fcn.01261000
test bl, bl
je case.0x166181e.4
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x166121b
mov edx, dword [edi + 8]
mov dword [eax], edx
mov dword [edi + 8], eax
mov eax, 0x4000
or word [edi], ax
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
xor eax, eax
mov dword [edi + 8], eax
mov eax, 0x4000
or word [edi], ax
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
test bl, bl
je 0x1661266
mov ecx, 0x4003
cmp word [edi], cx
jne 0x1661266
push 0
lea ecx, [esp + 0x1c]
call fcn.012a2740
mov edx, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [edx], eax
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, 3
push 0
lea ecx, [esp + 0x1c]
mov word [edi], ax
call fcn.012a2740
mov dword [edi + 8], eax
test bl, bl
je case.0x166181e.4
push 0x16fb144
push esi
call fcn.01267949
add esp, 8
test al, al
je 0x16612bb
mov ecx, 2
push ecx
mov word [edi], cx
call fcn.01666532
add esp, 4
test eax, eax
je 0x166121b
mov dx, word [edi + 8]
mov word [eax], dx
jmp 0x166121d
push 0x16fb13c
push esi
call fcn.01267949
add esp, 8
test al, al
je 0x16611ed
mov eax, 0x10
push 1
mov word [edi], ax
call fcn.01666532
add esp, 4
test eax, eax
je 0x166121b
mov cl, byte [edi + 8]
mov byte [eax], cl
jmp 0x166121d
test bl, bl
je 0x1661330
movzx eax, word [edi]
mov ecx, 0x4017
cmp ax, cx
je 0x1661310
mov edx, 0x4003
cmp ax, dx
jne 0x1661330
push 0
lea ecx, [esp + 0x1c]
call 0x12a2790
mov ecx, dword [edi + 8]
mov dword [ecx], eax
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov edx, 0x17
push 0
lea ecx, [esp + 0x1c]
mov word [edi], dx
call 0x12a2790
mov dword [edi + 8], eax
test bl, bl
je case.0x166181e.4
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x1662074
mov ecx, dword [edi + 8]
mov dword [eax], ecx
jmp 0x1662076
test bl, bl
je 0x16613a8
movzx eax, word [edi]
mov ecx, 0x4006
cmp ax, cx
je 0x1661385
mov edx, 0x4014
cmp ax, dx
jne 0x16613a8
push 0
lea ecx, [esp + 0x1c]
call 0x12a27e0
mov edi, dword [edi + 8]
mov dword [edi], eax
lea ecx, [esp + 0x18]
mov dword [edi + 4], edx
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, 0x14
push 0
lea ecx, [esp + 0x1c]
mov word [edi], ax
call 0x12a27e0
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
test bl, bl
je case.0x166181e.4
push 8
call fcn.01666532
add esp, 4
test eax, eax
je 0x166121b
mov ecx, dword [edi + 8]
mov dword [eax], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 4], edx
jmp 0x166121d
test bl, bl
je 0x1661429
movzx eax, word [edi]
mov ecx, 0x4006
cmp ax, cx
je 0x1661406
mov edx, 0x4015
cmp ax, dx
jne 0x1661429
push 0
lea ecx, [esp + 0x1c]
call 0x12a2840
mov edi, dword [edi + 8]
mov dword [edi], eax
lea ecx, [esp + 0x18]
mov dword [edi + 4], edx
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, 0x15
push 0
lea ecx, [esp + 0x1c]
mov word [edi], ax
call 0x12a2840
jmp 0x16613bb
test bl, bl
je 0x1661475
mov ecx, 0x400b
cmp word [edi], cx
jne 0x1661475
lea ecx, [esp + 0x18]
call fcn.012a05c0
movzx edx, al
mov eax, dword [edi + 8]
neg edx
sbb edx, edx
lea ecx, [esp + 0x18]
mov word [eax], dx
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov ecx, 0xb
mov word [edi], cx
lea ecx, [esp + 0x18]
call fcn.012a05c0
movzx edx, al
neg edx
sbb edx, edx
mov word [edi + 8], dx
test bl, bl
je case.0x166181e.4
push 2
call fcn.01666532
add esp, 4
test eax, eax
je 0x1662074
mov cx, word [edi + 8]
mov word [eax], cx
jmp 0x1662076
test bl, bl
je 0x16614e5
mov eax, 0x4005
cmp word [edi], ax
jne 0x16614e5
push 0
lea ecx, [esp + 0x1c]
call 0x12a2900
mov ecx, dword [edi + 8]
fstp qword [ecx]
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov edx, 5
push 0
lea ecx, [esp + 0x1c]
mov word [edi], dx
call 0x12a2900
fstp qword [edi + 8]
test bl, bl
je case.0x166181e.4
push 0x16fb124
push esi
call fcn.01267949
add esp, 8
test al, al
je 0x166154a
mov eax, 4
push eax
mov word [edi], ax
call fcn.01666532
add esp, 4
test eax, eax
je 0x1661578
fld qword [edi + 8]
mov ecx, 0x4000
fstp dword [eax]
or word [edi], cx
lea ecx, [esp + 0x18]
mov dword [edi + 8], eax
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
push 8
call fcn.01666532
add esp, 4
test eax, eax
je 0x1661578
fld qword [edi + 8]
mov ecx, 0x4000
fstp qword [eax]
or word [edi], cx
lea ecx, [esp + 0x18]
mov dword [edi + 8], eax
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov ecx, 0x4000
or word [edi], cx
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [edi + 8], eax
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
test bl, bl
je 0x16615d4
mov edx, 0x4003
cmp word [edi], dx
jne 0x16615d4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xdc]
push ecx
call 0x13a4120
add esp, 8
mov ebx, eax
call fcn.016608f0
mov edx, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [edx], eax
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xec]
mov eax, 3
push edx
mov word [edi], ax
call 0x13a4120
add esp, 8
mov ebx, eax
call fcn.016608f0
cmp byte [esp + 0x10c], 0
mov dword [edi + 8], eax
jmp 0x166205d
test bl, bl
je 0x1661649
mov eax, 0x4007
cmp word [edi], ax
jne 0x1661649
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x1c]
call 0x12a1850
mov esi, eax
call fcn.01660cf0
mov edx, dword [edi + 8]
lea ecx, [esp + 0x74]
fstp qword [edx]
call fcn.012b54e0
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x80]
mov eax, 7
push ecx
lea ecx, [esp + 0x1c]
mov word [edi], ax
call 0x12a1850
mov esi, eax
call fcn.01660cf0
fstp qword [edi + 8]
lea ecx, [esp + 0x80]
call fcn.012b54e0
test bl, bl
je case.0x166181e.4
push 8
call fcn.01666532
add esp, 4
test eax, eax
je 0x1662074
fld qword [edi + 8]
fstp qword [eax]
jmp 0x1662076
test bl, bl
je 0x16616f9
mov eax, 0x4009
cmp word [edi], ax
jne 0x16616f9
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x16616bc
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
push ecx
call 0x13c4910
add esp, 8
mov esi, eax
call fcn.01660930
mov edx, dword [edi + 8]
lea ecx, [esp + 0xa0]
mov dword [edx], eax
call fcn.0135bfb0
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xac]
mov eax, 9
push edx
mov word [edi], ax
call 0x13c4910
add esp, 8
mov esi, eax
call fcn.01660930
lea ecx, [esp + 0xa8]
mov dword [edi + 8], eax
call fcn.0135bfb0
jmp 0x166205b
test bl, bl
je 0x166178e
mov eax, 0x4009
cmp word [edi], ax
jne 0x166178e
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x1661751
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xb4]
push ecx
call 0x14196b0
add esp, 8
mov esi, eax
call fcn.01660b50
mov edx, dword [edi + 8]
lea ecx, [esp + 0xb0]
mov dword [edx], eax
call fcn.01337270
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xc0]
mov eax, 9
push edx
mov word [edi], ax
call 0x14196b0
add esp, 8
mov esi, eax
call fcn.01660b50
lea ecx, [esp + 0xbc]
mov dword [edi + 8], eax
call fcn.01337270
jmp 0x166205b
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x88]
push ecx
call 0x13e53e0
add esp, 8
mov ecx, eax
call 0x1368de0
lea ecx, [esp + 0x84]
mov esi, eax
call fcn.01368e30
test bl, bl
je 0x1661890
movzx eax, word [edi]
test eax, 0x4000
je 0x1661890
and eax, 0xffffbfff
add eax, 0xfffffffe
cmp eax, 0x15
ja case.0x166181e.4
movzx edx, byte [eax + 0x1662174]
jmp dword [edx*4 + 0x166215c]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [eax], esi
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov ecx, dword [edi + 8]
mov word [ecx], si
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, dword [edi + 8]
lea ecx, [esp + 0x18]
mov word [eax], si
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov ecx, dword [edi + 8]
mov dword [ecx], esi
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov edx, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [edx], esi
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, 3
mov dword [edi + 8], esi
jmp 0x1662058
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.012a5440
mov eax, dword [esp + 0x34]
mov ebx, dword [eax + 0xc]
mov ecx, dword [esi]
sub ebx, dword [eax + 8]
cmp dword [ecx + 8], 0
mov ebp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], 0xffffffff
je 0x1661916
push 0x17ff5ec
mov ecx, esi
call fcn.0128e570
test al, al
je 0x1661912
mov edx, dword [esi]
mov eax, dword [edx + 8]
sub eax, 7
push eax
push 6
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0128efb0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
push eax
call fcn.012a0470
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
call fcn.012617d1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x30]
dec ecx
cmp ecx, 0xf
ja case.0x166192f.3
movzx edx, byte [ecx + 0x16621a4]
jmp dword [edx*4 + 0x166218c]
mov ebp, 3
jmp 0x1661967
lea edx, [esp + 0x5c]
mov ebp, 5
mov dword [esp + 0x38], edx
jmp 0x166196f
mov ebp, 7
jmp 0x1661967
lea edx, [esp + 0x5c]
mov ebp, 0xb
mov dword [esp + 0x38], edx
jmp 0x166196f
mov ebp, 0x14
lea ecx, [esp + 0x5c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], ebp
xor esi, esi
mov byte [esp + 0x2f], 0
test ebx, ebx
je 0x1661b39
mov ecx, dword [eax + 8]
mov ecx, dword [eax + ecx*4 + 0x14]
lea edx, [esp + 0x44]
push edx
call fcn.012a5440
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
je 0x1661b13
lea edx, [esp + 0x64]
push edx
xor eax, eax
push 2
mov dword [esp + 0x74], eax
push 0xc
mov byte [esp + 0x3b], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x78], ecx
call dword [0x16d53c8]
mov esi, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], 0
test ebx, ebx
jle 0x1661b13
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], ecx
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [eax + edx*4 + 0x14]
call fcn.012a5440
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 8]
cmp dword [esp + 0x50], ecx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x50]
jl 0x1661a25
lea ecx, [esp + 0x40]
mov ebp, dword [ecx]
xor esi, esi
test ebp, ebp
jle 0x1661ae3
mov ecx, dword [eax + 8]
add ecx, esi
mov edx, dword [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x94]
call fcn.012a0f80
lea eax, [esp + 0x54]
push eax
call dword [fcn.016d5390]
lea ecx, [esp + 0x90]
call fcn.012a13a0
push eax
lea ecx, [esp + 0x50]
call fcn.0128e840
push 0
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.01660f60
mov ecx, dword [esp + 0x5c]
add esp, 0x10
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1661a9e
mov eax, dword [esp + 0x4c]
push eax
call fcn.01285a10
add esp, 4
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
push ecx
lea edx, [esp + 0x8c]
push edx
push eax
mov dword [esp + 0x98], esi
call dword [0x16d53c4]
lea ecx, [esp + 0x54]
push ecx
call fcn.01660e60
add esp, 4
lea ecx, [esp + 0x90]
call fcn.012a03b0
mov eax, dword [esp + 0x28]
inc esi
cmp esi, ebp
jl 0x1661a31
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x1661afa
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x2c]
call fcn.012668cd
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x16619e7
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1661b2e
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x48]
call fcn.012668cd
cmp byte [esp + 0x2f], 0
jne 0x1661c08
push ebx
push 0
push ebp
call dword [0x16d53c0]
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x1661c08
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
add edx, eax
mov eax, dword [ecx + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x68]
call fcn.012a0f80
cmp dword [esp + 0x30], 0xffffffff
je 0x1661b7f
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x68]
call fcn.012a2960
lea edx, [esp + 0x54]
push edx
call dword [fcn.016d5390]
lea ecx, [esp + 0x64]
call fcn.012a13a0
push eax
lea ecx, [esp + 0x40]
call fcn.0128e840
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.01660f60
mov eax, dword [esp + 0x4c]
add esp, 0x10
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1661bd0
mov edx, dword [esp + 0x3c]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [0x16d53c4]
lea edx, [esp + 0x54]
push edx
call fcn.01660e60
add esp, 4
lea ecx, [esp + 0x64]
call fcn.012a03b0
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, ebx
jl 0x1661b53
mov al, byte [esp + 0x10c]
test al, al
je 0x1661c38
mov ecx, ebp
or ecx, 0x6000
cmp word [edi], cx
jne 0x1661c38
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x1661c31
mov edx, dword [eax]
push edx
call dword [fcn.016d53b4]
mov eax, dword [edi + 8]
mov dword [eax], esi
jmp 0x1661c6a
or ebp, 0x2000
mov word [edi], bp
mov dword [edi + 8], esi
test al, al
je 0x1661c6a
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x1661c5d
mov ecx, dword [edi + 8]
mov dword [eax], ecx
jmp 0x1661c5f
xor eax, eax
mov edx, 0x4000
or word [edi], dx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne case.0x166181e.4
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x38]
call fcn.012668cd
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call 0x12a5400
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 0xc]
sub esi, dword [eax + 8]
push esi
push 0
push 8
mov dword [esp + 0x4c], esi
call dword [0x16d53c0]
xor ecx, ecx
mov ebx, eax
mov dword [esp + 0x10], ecx
test esi, esi
jle 0x1661d2f
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
add edx, ecx
mov esi, dword [eax + edx*4 + 0x14]
mov eax, esi
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [fcn.016d538c]
mov ebp, eax
push ebp
lea edx, [esp + 0x14]
push edx
push ebx
call dword [0x16d53c4]
push ebp
call dword [fcn.016d5388]
mov eax, esi
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1661d20
push esi
call fcn.01273020
add esp, 4
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x40]
jl 0x1661cd0
mov al, byte [esp + 0x10c]
test al, al
je 0x1661d5c
mov edx, 0x6008
cmp word [edi], dx
jne 0x1661d5c
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x1661d55
mov eax, dword [eax]
push eax
call dword [fcn.016d53b4]
mov ecx, dword [edi + 8]
mov dword [ecx], ebx
jmp 0x1661d8d
mov edx, 0x2008
mov word [edi], dx
mov dword [edi + 8], ebx
test al, al
je 0x1661d8d
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x1661d80
mov ecx, dword [edi + 8]
mov dword [eax], ecx
jmp 0x1661d82
xor eax, eax
mov edx, 0x4000
or word [edi], dx
mov dword [edi + 8], eax
mov eax, dword [esp + 0x28]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne case.0x166181e.4
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x2c]
call fcn.01261eb3
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.012a1930
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
push esi
push 0
push 0x11
call dword [0x16d53c0]
mov ebp, eax
test esi, esi
je 0x1661e13
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0xc]
lea ecx, [esp + 0x48]
push ecx
push ebp
mov dword [esp + 0x48], eax
call dword [fcn.016d53bc]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
push esi
push edx
push eax
call fcn.016665c0
add esp, 0xc
push ebp
call dword [fcn.016d53b8]
test bl, bl
je 0x1661e50
mov ecx, 0x6011
cmp word [edi], cx
jne 0x1661e50
mov eax, dword [edi + 8]
cmp dword [eax], 0
je 0x1661e32
mov edx, dword [eax]
push edx
call dword [fcn.016d53b4]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
mov dword [eax], ebp
call fcn.012617d1
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov ecx, 0x2011
mov word [edi], cx
mov dword [edi + 8], ebp
test bl, bl
je 0x1661e81
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x1661e74
mov edx, dword [edi + 8]
mov dword [eax], edx
jmp 0x1661e76
xor eax, eax
mov dword [edi + 8], eax
mov eax, 0x4000
or word [edi], ax
lea ecx, [esp + 0x10]
call fcn.012617d1
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
lea ecx, [esp + 0x18]
call fcn.012a13a0
push eax
lea ecx, [esp + 0x18]
call fcn.0128e840
push 0x17ff428
lea ecx, [esp + 0x1c]
call fcn.012a13a0
push eax
call 0x128e260
add esp, 8
test eax, eax
jne 0x1661f25
mov ecx, 9
mov word [edi], cx
lea ecx, [esp + 0x18]
call 0x12a1e50
mov eax, dword [eax]
mov dword [edi + 8], eax
test eax, eax
je 0x1661ee7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1661f62
push 0x17ff9d8
call fcn.012a98c0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.012617d1
lea ecx, [esp + 0x18]
call fcn.012a03b0
xor al, al
mov ecx, dword [esp + 0xf8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.016664c7
add esp, 0xec
ret
push 0x17ff9cc
lea ecx, [esp + 0x1c]
call fcn.012a13a0
push eax
call 0x128e260
add esp, 8
test eax, eax
jne 0x1661f78
mov ecx, 9
mov word [edi], cx
lea ecx, [esp + 0x18]
call 0x12a1e50
mov edx, dword [eax]
mov dword [edi + 8], edx
test bl, bl
je 0x1661f62
mov eax, 0x4000
or word [edi], ax
lea ecx, [esp + 0x14]
call fcn.012617d1
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
push 0x17ff41c
lea ecx, [esp + 0x1c]
call fcn.012a13a0
push eax
call 0x128e260
add esp, 8
test eax, eax
jne 0x1661fc3
mov ecx, 0xd
mov word [edi], cx
lea ecx, [esp + 0x18]
call 0x12a1e50
mov eax, dword [eax]
mov dword [edi + 8], eax
test eax, eax
je 0x1661fb5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1661f62
push 0x17ff990
jmp 0x1661ef0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
push eax
call fcn.012ad000
add esp, 4
test eax, eax
je 0x1661ef8
lea ecx, [esp + 0x18]
call 0x12a0600
mov esi, dword [eax]
mov edx, 9
push 0x17ffb50
lea ecx, [esp + 0xcc]
mov word [edi], dx
call fcn.0164e3e0
add edi, 8
push edi
lea eax, [esp + 0xcc]
push eax
lea ecx, [esi + 8]
call fcn.01651f30
test bl, bl
je 0x1661f62
push 0x17ff954
jmp 0x1661ef0
test bl, bl
je 0x166204c
mov ecx, 0x400a
cmp word [edi], cx
jne 0x166204c
mov edx, dword [edi + 8]
lea ecx, [esp + 0x18]
mov dword [edx], 0x80020004
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c
mov eax, 0xa
mov dword [edi + 8], 0x80020004
mov word [edi], ax
test bl, bl
je case.0x166181e.4
push 4
call fcn.01666532
add esp, 4
test eax, eax
je 0x1662074
mov ecx, dword [edi + 8]
mov dword [eax], ecx
jmp 0x1662076
xor eax, eax
mov edx, 0x4000
or word [edi], dx
mov dword [edi + 8], eax
lea ecx, [esp + 0x18]
call fcn.012a03b0
mov al, 1
jmp 0x1661f0c