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

Disassembly:
sub esp, 0xcc
mov eax, dword [0x1854370]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push ebp
push edi
mov edi, dword [esp + 0xdc]
mov ebp, ecx
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x4c]
push eax
call 0x12775b0
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call 0x12775b0
mov ecx, eax
call fcn.01273090
mov edx, dword [esp + 0x54]
mov bl, al
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1658d8d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x4c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1658da7
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.01273020
add esp, 4
test bl, bl
je 0x1658dbd
mov edx, dword [ebp + 4]
mov eax, dword [edx]
xor ecx, ecx
cmp dword [eax + 8], ecx
setne al
jmp 0x1659352
mov eax, dword [edi]
push esi
mov dword [esp + 0x10], eax
mov edx, 1
lock xadd dword [eax], edx
push 1
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x70], 0x17fef48
call 0x1277000
cmp eax, 0xffffffff
je 0x1658dfe
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
add ecx, 0xffffffd9
cmp eax, ecx
je 0x16591e1
push 1
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x68], 0x17fef40
call 0x1274c70
test al, al
jne 0x16591e1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xac]
call fcn.0169b560
lea ecx, [esp + 0xa8]
call fcn.0169b0b0
test al, al
je 0x16591cd
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call fcn.01275120
push eax
call dword [0x16d56c8]
test eax, eax
jne 0x1658eac
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xd0]
call fcn.0164e3e0
mov ecx, eax
call fcn.0169b790
mov edx, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x5c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x16591cd
mov edx, dword [esp + 0x5c]
push edx
call fcn.01273020
add esp, 4
jmp 0x16591cd
push 0xffffffffffffffff
push 0x17ff6b4
call fcn.012735b0
add esp, 8
push 0
mov dword [esp + 0x34], eax
push 0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x40]
call fcn.012c38b0
mov ecx, dword [esp + 0x30]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1658eeb
mov eax, dword [esp + 0x30]
push eax
call fcn.01273020
add esp, 4
push 0xffffffffffffffff
push 0x17ff6a4
call fcn.012735b0
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov ebx, 0x80000000
add esp, 8
mov dword [esp + 0x80], ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x20], eax
mov ecx, 1
lock xadd dword [eax], ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
call fcn.01274620
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x44]
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 + 0x48]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1658f7c
mov edx, dword [esp + 0x48]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x98]
call fcn.012a03b0
mov eax, dword [esp + 0x20]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1658fa2
mov edx, dword [esp + 0x20]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x78]
call fcn.012a03b0
mov eax, dword [esp + 0x28]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1658fc5
mov edx, dword [esp + 0x28]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
jne 0x16591c4
push 0xffffffffffffffff
push 0x17ff69c
call fcn.012735b0
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x40], eax
call 0x12c6660
lea ecx, [esp + 0x3c]
call fcn.01261000
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x38]
call 0x12c5bf0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call 0x12859d0
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
cmp edx, 1
je 0x165903c
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]
mov esi, dword [esp + 0x40]
lea eax, [eax + edx*4 + 0x14]
cmp esi, eax
je 0x16591a0
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov ecx, 1
lock xadd dword [eax], ecx
push 0xffffffffffffffff
push 0x17ff640
call fcn.012735b0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], 0
mov dword [esp + 0x24], eax
mov edx, 1
lock xadd dword [eax], edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
call fcn.01274620
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x44]
call fcn.012c50d0
mov ecx, eax
call fcn.012a1790
lea ecx, [esp + 0x88]
call fcn.012a03b0
mov edx, dword [esp + 0x24]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x16590ed
mov ecx, dword [esp + 0x24]
push ecx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x68]
call fcn.012a03b0
mov edx, dword [esp + 0x2c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659110
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.01273020
add esp, 4
push edi
lea ecx, [esp + 0x20]
call fcn.01273090
test al, al
jne 0x165915e
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659138
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.01273020
add esp, 4
mov edx, dword [esp + 0x18]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659152
mov ecx, dword [esp + 0x18]
push ecx
call fcn.01273020
add esp, 4
add esi, 4
mov dword [esp + 0x40], esi
jmp 0x1659020
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.01273030
mov eax, dword [esp + 0x1c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659186
mov edx, dword [esp + 0x1c]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x16591a0
mov edx, dword [esp + 0x18]
push edx
call fcn.01273020
add esp, 4
lea ecx, [esp + 0x34]
call 0x12c7310
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x16591c4
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x18]
call fcn.01261eb3
lea ecx, [esp + 0x34]
call fcn.012c5010
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
jne 0x16591e1
push edi
lea ecx, [esp + 0x14]
call fcn.01273030
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [ebp + 4]
call 0x12775b0
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call 0x12775b0
mov ecx, eax
call fcn.01273090
mov bl, al
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659220
mov edx, dword [esp + 0x44]
push edx
call fcn.01273020
add esp, 4
mov eax, dword [esp + 0x4c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165923a
mov edx, dword [esp + 0x4c]
push edx
call fcn.01273020
add esp, 4
test bl, bl
je 0x165926b
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
mov edx, dword [esp + 0x10]
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1659264
mov ecx, dword [esp + 0x10]
push ecx
call fcn.01273020
add esp, 4
mov al, bl
jmp 0x1659351
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
mov ecx, ebp
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 4]
call fcn.01273030
mov eax, dword [ebp + 4]
or dword [eax + 8], 0x20
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov edx, dword [edx + 0x20]
add eax, 0xc
push eax
mov ecx, ebp
call edx
test al, al
jne 0x16592a5
mov eax, dword [ebp + 4]
or dword [eax + 8], 0x10
mov eax, dword [ebp + 4]
cmp dword [eax + 0xc], 0
jne 0x1659335
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call fcn.01274d20
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax]
cmp edx, 1
jne 0x16592d3
mov eax, dword [esi]
lea ecx, [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x16592e0
mov edx, dword [esi]
mov eax, dword [edx + 8]
push eax
mov ecx, esi
call fcn.0128ea10
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push edx
push 0x17ff658
call fcn.012a98c0
mov eax, dword [esp + 0x5c]
add esp, 8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165930d
mov edx, dword [esp + 0x54]
push edx
call fcn.01285a10
add esp, 4
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1659331
mov edx, dword [esp + 0x10]
push edx
call fcn.01273020
add esp, 4
xor al, al
jmp 0x1659351
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x165934f
mov edx, dword [esp + 0x10]
push edx
call fcn.01273020
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0xd4]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.016664c7
add esp, 0xcc
ret 4