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

Disassembly:
sub esp, 0x10
mov al, byte [esp + 0x1c]
mov edx, 0x1d4
push ebx
test al, al
mov byte [esp + 7], 1
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, 0x20c
cmove ebx, edx
push esi
add ebx, ebp
push edi
test al, al
je 0x4086f7
mov ecx, dword [ebp + 0xac]
mov edi, dword [ebp + 0xc4]
jmp 0x408700
mov ecx, dword [ebp + 0x64]
mov edi, dword [ebp + 0xc8]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [eax], 0
cmp dword [ebp + 0xb8], 2
jne 0x408741
cmp dword [ebp + 0x14c], 0xffffffff
mov eax, 0x1b0
mov edx, 0x1c0
cmovne eax, edx
cmp dword [eax + ebp], 2
je 0x408741
mov esi, dword [esp + 0x24]
mov al, byte [esi + 0x4a3]
jmp 0x40874b
mov esi, dword [esp + 0x24]
mov al, byte [esi + 0x437]
test al, al
jne 0x408759
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40876b
test byte [eax + 4], 0x10
je 0x40876b
add eax, 0x74
jmp 0x408771
lea eax, [esi + 0x920]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x4d8], eax
jbe 0x408a73
mov dword [esp + 0x28], eax
nop dword [eax + eax]
mov esi, dword [esi + 0x91c]
add esi, eax
cmp dword [esi + 0xc], 0
je 0x408a1e
push dword [esi]
push ecx
call fcn.0041b660
add esp, 8
test eax, eax
je 0x408a1e
cmp byte [ebp + 0x250], 0
mov eax, dword [esi + 4]
jne 0x4087ca
test eax, eax
je 0x4087e6
jmp 0x408a1e
test eax, eax
je 0x408a1e
push eax
push dword [ebp + 0x7c]
call fcn.0041b660
add esp, 8
test eax, eax
je 0x408a1e
cmp byte [ebp + 0x251], 0
mov eax, dword [esi + 0x1c]
jne 0x4087fc
cmp eax, 0xffffffff
je 0x408811
jmp 0x408a1e
cmp eax, 0xffffffff
je 0x408a1e
cmp dword [ebp + 0xcc], eax
jne 0x408a1e
cmp edi, dword [esi + 0x18]
jne 0x408a1e
mov eax, dword [ebp + 0x290]
push dword [esi + 8]
push dword [eax]
call fcn.0041b660
add esp, 8
test eax, eax
je 0x408a1e
mov eax, dword [ebx]
cmp eax, dword [esi + 0x20]
jne 0x408a1e
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x24]
jne 0x408a1e
mov al, byte [ebx + 0x34]
cmp al, byte [esi + 0x54]
jne 0x408a1e
mov al, byte [ebx + 0x35]
cmp al, byte [esi + 0x55]
jne 0x408a1e
mov al, byte [ebx + 0x36]
cmp al, byte [esi + 0x56]
jne 0x408a1e
mov edx, dword [ebx + 0x28]
mov edi, dword [esi + 0x48]
test edx, edx
jne 0x408884
test edi, edi
jne 0x408a1e
jmp 0x4088f2
test edi, edi
je 0x408a1e
mov ecx, dword [edx + 4]
cmp ecx, dword [edi + 4]
jne 0x408a1e
mov edx, dword [edx]
mov edi, dword [edi]
sub ecx, 4
jb 0x4088b2
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4088b7
add edx, 4
add edi, 4
sub ecx, 4
jae 0x4088a1
cmp ecx, 0xfffffffc
je 0x4088e8
mov al, byte [edx]
cmp al, byte [edi]
jne 0x4088e4
cmp ecx, 0xfffffffd
je 0x4088e8
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x4088e4
cmp ecx, 0xfffffffe
je 0x4088e8
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x4088e4
cmp ecx, 0xffffffff
je 0x4088e8
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x4088e8
xor al, al
jmp 0x4088ea
mov al, 1
test al, al
je 0x408a1e
mov edx, dword [ebx + 0x2c]
mov edi, dword [esi + 0x4c]
test edx, edx
jne 0x408906
test edi, edi
jne 0x408a1e
jmp 0x408974
test edi, edi
je 0x408a1e
mov ecx, dword [edx + 4]
cmp ecx, dword [edi + 4]
jne 0x408a1e
mov edx, dword [edx]
mov edi, dword [edi]
sub ecx, 4
jb 0x408934
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x408939
add edx, 4
add edi, 4
sub ecx, 4
jae 0x408923
cmp ecx, 0xfffffffc
je 0x40896a
mov al, byte [edx]
cmp al, byte [edi]
jne 0x408966
cmp ecx, 0xfffffffd
je 0x40896a
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x408966
cmp ecx, 0xfffffffe
je 0x40896a
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x408966
cmp ecx, 0xffffffff
je 0x40896a
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x40896a
xor al, al
jmp 0x40896c
mov al, 1
test al, al
je 0x408a1e
push dword [esi + 0x28]
push dword [ebx + 8]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x2c]
push dword [ebx + 0xc]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x30]
push dword [ebx + 0x10]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x34]
push dword [ebx + 0x14]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x38]
push dword [ebx + 0x18]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x3c]
push dword [ebx + 0x1c]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x40]
push dword [ebx + 0x20]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x50]
push dword [ebx + 0x30]
call fcn.0041b630
add esp, 8
test eax, eax
je 0x408a1e
push dword [esi + 0x44]
push dword [ebx + 0x24]
call fcn.0041b630
add esp, 8
test eax, eax
jne 0x408a48
mov esi, dword [esp + 0x24]
inc dword [esp + 0x2c]
add dword [esp + 0x28], 0x58
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x4d8]
jae 0x408a73
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x408790
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x408a69
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret