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

Disassembly:
push 0xffffffffffffffff
push 0x87d666
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov dword [esp + 0x64], ebp
call edx
mov esi, dword [esp + 0x6c]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ebx, eax
mov dword [esp + 0x20], edx
cmp dword [0x8c4944], ebp
jle 0x6430e1
mov dword [esp + 0x6c], 0x8c48c0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
push eax
push edi
push esi
call edx
add esp, 0xc
test al, al
jne 0x6431be
cmp dword [edi + 0xc], 0
mov eax, dword [esi]
ja 0x643121
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x2c]
push 0
push ecx
push ebx
mov ecx, esi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
add dword [esp + 0x6c], 0xc
inc ebp
cmp ebp, dword [0x8c4944]
jl 0x643099
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x643109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.00636790
add esp, 0x10
mov esi, eax
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x643154
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x70], eax
inc esi
push esi
lea ecx, [esp + 0x74]
push 0x441b00
push ecx
mov byte [esp + 0x70], 1
call fcn.004aa600
mov esi, dword [esp + 0x7c]
add esp, 0xc
push 0
push 0x10
push esi
call fcn.007d3a8e
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6430e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x6430e1
mov eax, dword [esp + 0x74]
mov ebx, dword [edi + 0x28]
lea ecx, [edi + 0x28]
add eax, 0xfffffff0
sub ebx, 0x10
cmp eax, ebx
je 0x64321e
cmp dword [ebx + 0xc], 0
jl 0x643210
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x643210
push eax
call fcn.004a9b50
mov dword [esp + 0x70], eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x643204
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x6c]
add ecx, 0x10
mov dword [edi + 0x28], ecx
jmp 0x64321e
mov edx, dword [esp + 0x74]
mov eax, dword [edx - 0xc]
push eax
push edx
call fcn.004a8db0
lea eax, [ebp + ebp*2]
add eax, eax
mov edx, dword [eax + eax + 0x8c48c8]
add eax, eax
mov dword [edi + 0x30], edx
mov eax, dword [eax + 0x8c48c4]
mov ecx, esi
mov dword [edi + 0x34], eax
call fcn.007beba0
mov dword [edi + 0x38], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call edx
mov ecx, dword [eax]
mov ebp, dword [edi + 0x3c]
lea ebx, [edi + 0x3c]
lea eax, [ecx - 0x10]
sub ebp, 0x10
mov byte [esp + 0x64], 2
cmp eax, ebp
je 0x6432b3
cmp dword [ebp + 0xc], 0
jl 0x6432a7
mov edx, dword [eax]
cmp edx, dword [ebp]
jne 0x6432a7
push eax
call fcn.004a9b50
mov dword [esp + 0x70], eax
add esp, 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x64329c
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x6c]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x6432b3
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebx
call fcn.004a8db0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6432d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.00638590
push 0
push 0x100000
push 1
lea ecx, [esp + 0x30]
call fcn.0065c3c0
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x68], 3
call edx
push 0x441af0
push eax
lea eax, [esp + 0x1c]
mov bl, 4
push eax
mov byte [esp + 0x70], bl
call fcn.004af3d0
add esp, 0xc
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 5
call fcn.0065d320
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x64], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x643356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x64337b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x6c], 0
je 0x643395
mov ecx, dword [esp + 0x70]
push ecx
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00640bf0
add esp, 0xc
push 0x413454
lea ecx, [esp + 0x70]
call fcn.004a8f10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
mov bl, 6
push eax
lea ecx, [edi + 0x58]
mov byte [esp + 0x74], bl
call fcn.005a8560
test eax, eax
jne 0x643480
push 0xc0
call fcn.007c8529
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
xor eax, eax
mov byte [esp + 0x64], 7
cmp esi, eax
je 0x64342d
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.007cff5d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x643410
push 0x80004005
call fcn.004a8210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x50], eax
mov ecx, esi
mov byte [esp + 0x64], 8
call fcn.006390c0
jmp 0x64342f
xor esi, esi
mov ecx, dword [esp + 0x70]
mov dword [esi + 0x4c], ecx
mov eax, dword [esp + 0x6c]
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x78], esp
mov esi, esp
push eax
mov byte [esp + 0x70], bl
call fcn.004a9b50
add eax, 0x10
add esp, 4
mov ecx, edi
mov dword [esi], eax
call fcn.0063ff70
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [edi + 0x58]
call fcn.005a8560
mov byte [edi + 0x51], 1
jmp 0x643484
mov byte [edi + 0x51], 0
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
mov byte [esp + 0x64], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6434a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.0063fd40
cmp dword [edi + 0x40], 0
jne 0x6434cc
cmp dword [edi + 0x44], 0
jne 0x6434cc
mov eax, 0x180
mov ecx, 0x120
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x64], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6434f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 0
call fcn.007e4df4
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x643527
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x64310b