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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
test esi, esi
jne 0x4610e3
pop esi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2c], eax
je 0x4610d8
cmp dword [esi + 0x80], 8
push edi
mov dword [esi + 0x34], eax
jne 0x46113a
cmp dword [esi + 0x84], eax
jne 0x46113a
nop dword [eax]
cmp dword [esi + 0x40], ebx
jne 0x46111c
mov ecx, esi
call fcn.00460ef0
lea eax, [esi + 0x88]
mov dword [esi + 0x40], 0x4000
mov dword [esi + 0x3c], eax
mov edi, dword [esi + 0x44]
lea ecx, [esi + 0x30]
mov edx, 4
call fcn.004657d0
mov ecx, dword [esi + 0x44]
sub ecx, edi
add dword [esi + 0x6c], ecx
test eax, eax
je 0x461100
xor ebx, ebx
xor ecx, ecx
cmp eax, 1
cmovne ecx, eax
cmp dword [esi + 0x6c], 0
mov edi, ecx
jbe 0x461160
test ecx, ecx
jne 0x461160
mov ecx, esi
call fcn.00460ef0
cmp eax, 0xffffffff
mov eax, 0xffffffff
cmove edi, eax
cmp dword [esi + 0x80], 8
jne 0x461183
cmp dword [esi + 0x84], 0
jne 0x46119b
lea ecx, [esi + 0x30]
call fcn.00465f90
mov edi, eax
mov dword [esi + 0x68], 0
cmp dword [esi + 0x84], 0
jne 0x46119b
mov ebx, dword [esi + 0x408c]
mov eax, dword [esi + 0x38]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov ecx, dword [esi + 0x74]
mov eax, ebx
mov edx, dword [esi + 0x40a4]
add edx, dword [esi + 0x44]
shr eax, 8
mov dword [ebp - 0xc], eax
mov byte [ecx + 0x11], al
shr eax, 8
mov byte [ecx + 0x12], al
shr eax, 8
mov byte [ecx + 0x13], al
shr eax, 8
mov dword [ebp - 0x10], edx
mov byte [ecx + 0x10], bl
test eax, eax
je 0x4611d2
mov dword [ecx + 0x10], 0xffffffff
mov ecx, dword [esi + 0x74]
mov eax, edx
shr eax, 8
mov dword [ebp - 0x14], eax
mov byte [ecx + 0x15], al
shr eax, 8
mov byte [ecx + 0x16], al
shr eax, 8
mov byte [ecx + 0x17], al
shr eax, 8
mov byte [ecx + 0x14], dl
test eax, eax
je 0x4611fd
mov dword [ecx + 0x14], 0xffffffff
cmp dword [esi + 0x5c], 1
jne 0x461210
mov eax, dword [esi + 0x74]
mov word [eax + 0x24], 1
nop dword [eax]
mov ecx, dword [esi + 0x74]
mov eax, dword [ebp - 8]
mov ebx, eax
shr ebx, 8
mov byte [ecx + 0x18], al
mov eax, ebx
mov byte [ecx + 0x19], al
shr eax, 8
mov byte [ecx + 0x1a], al
shr eax, 8
mov byte [ecx + 0x1b], al
shr eax, 8
test eax, eax
je 0x46123d
mov dword [ecx + 0x18], 0xffffffff
test edi, edi
jne 0x461254
push dword [esi + 0x78]
mov edx, dword [esi + 0x74]
lea ecx, [esi + 0x24]
call fcn.004607d0
add esp, 4
mov edi, eax
push dword [esi + 0x74]
call fcn.005585f7
add esp, 4
test edi, edi
jne 0x461374
push dword [esi + 0x20]
mov eax, dword [esi + 0xc]
push dword [esi + 0x1c]
call eax
mov ecx, dword [esi + 0x70]
push edi
add ecx, 0xe
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
push ecx
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x18
test eax, eax
je 0x461297
or edi, 0xffffffff
jmp 0x461357
mov eax, dword [ebp - 4]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0xc]
mov byte [ebp - 3], al
shr eax, 8
mov byte [ebp - 2], al
shr eax, 8
mov byte [ebp - 1], al
shr eax, 8
test eax, eax
je 0x4612bd
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 4
jne 0x46128f
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov byte [ebp - 3], al
shr eax, 8
mov byte [ebp - 2], al
shr eax, 8
mov byte [ebp - 1], al
shr eax, 8
test eax, eax
je 0x4612fc
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 4
jne 0x46128f
mov eax, dword [ebp - 8]
mov byte [ebp - 3], bl
shr ebx, 8
mov byte [ebp - 2], bl
shr ebx, 8
mov byte [ebp - 1], bl
shr ebx, 8
mov byte [ebp - 4], al
test ebx, ebx
je 0x46133c
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
lea edi, [eax - 4]
neg edi
sbb edi, edi
mov eax, dword [esi + 0x10]
push 0
push dword [ebp - 0x18]
push dword [esi + 0x20]
push dword [esi + 0x1c]
call eax
add esp, 0x10
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
inc dword [esi + 0x40b0]
mov eax, edi
pop edi
mov dword [esi + 0x2c], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret