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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [0x426404]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x418f90
cmp esi, 1
je 0x418f90
cmp esi, 0xa
je 0x418f90
cmp esi, 0xb
je 0x418f90
xor al, al
jmp 0x418f92
mov al, 1
xor edx, edx
test al, al
setne dl
inc edx
cmp esi, 2
jne 0x418fa5
cmp byte [ebx + 3], 1
je 0x418fdd
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x418fd2
cmp edx, 1
jne 0x418fbe
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, edi
setne al
jmp 0x418fca
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, 1
sete al
test al, al
jne 0x418fdd
cmp ecx, edi
je 0x418fe4
cmp dword [ecx + 0xc], edi
jne 0x418fe4
cmp byte [ecx + 3], 3
jne 0x418fe4
mov byte [esp + 0x10], 1
jmp 0x418fe9
mov byte [esp + 0x10], 0
mov ecx, dword [ebx + 4]
mov dword [esp + 0x34], edi
cmp ecx, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x30], edx
je 0x4191f5
mov ebp, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edi
push ebp
lea edx, [esp + 0x58]
push eax
push edx
call fcn.00412530
mov edi, eax
cmp esi, 0xc
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x48], edx
mov edi, dword [edi + 0xc]
mov dword [esp + 0x4c], edi
jne 0x419037
mov dword [esp + 0x30], ecx
cmp eax, edx
mov ebx, eax
je 0x419318
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
sub esi, edx
sar esi, 3
cmp eax, 0xc
je 0x419063
test esi, esi
je 0x419063
mov dword [esp + 0x30], 0
mov edi, dword [ebp]
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call fcn.0040b720
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x4190ac
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, ebx
call fcn.0040b720
mov ecx, eax
call fcn.0040b990
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041af50
jmp 0x41911b
lea edx, [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x41911b
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x41911b
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x30]
push edi
push eax
mov ecx, ebx
call fcn.0040b770
mov ecx, eax
call fcn.0040b990
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, ebx
call fcn.0040b760
mov ecx, eax
call fcn.0040b990
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x40]
push eax
push edx
call fcn.0041af70
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
test edi, edi
je 0x4191e1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 3
cmp ecx, esi
je 0x4191e1
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x419159
mov eax, dword [esp + 0x70]
test eax, eax
setne byte [esp + 0x6c]
jmp 0x419162
cmp dword [esp + 0x70], eax
sete byte [esp + 0x6c]
test edi, edi
je 0x4191e1
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41917c
mov al, byte [esp + 0x6c]
test al, al
je 0x41917c
mov ecx, 1
jmp 0x41917e
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
sar edx, 3
cmp edx, esi
je 0x4191da
mov al, byte [edi + 3]
cmp al, 2
je 0x4191c7
cmp al, 3
je 0x4191c7
mov eax, dword [edi + 8]
push ecx
push ebp
push eax
mov dl, byte [eax + 1]
push esi
cmp dl, 2
jne 0x4191b8
lea eax, [esp + 0x40]
push eax
call fcn.00413840
add esp, 0x14
jmp 0x4191da
lea ecx, [esp + 0x40]
push ecx
call fcn.004137a0
add esp, 0x14
jmp 0x4191da
mov edx, dword [edi + 8]
push ebp
push edx
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004138f0
add esp, 0x10
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x419166
mov eax, dword [esp + 0x48]
add ebx, 8
cmp ebx, eax
jne 0x419041
jmp 0x419318
mov ebp, dword [esp + 0x6c]
mov esi, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
mov edi, dword [ebp]
push ecx
mov ecx, esi
call fcn.0040b720
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x419244
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x7c]
push edi
push ecx
mov ecx, esi
call fcn.0040b720
mov ecx, eax
call fcn.0040b990
lea edx, [esp + 0x3c]
push eax
push edx
mov ecx, ebx
call fcn.0041af50
jmp 0x4192b1
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x4192b1
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x4192b1
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x7c]
push edi
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.0040b990
lea edx, [esp + 0x78]
push eax
push edx
mov ecx, esi
call fcn.0040b760
mov ecx, eax
call fcn.0040b990
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
call fcn.0041af70
mov esi, dword [ebx + 8]
test esi, esi
je 0x419318
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub ecx, edx
test ecx, 0xfffffff8
je 0x419318
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x4192e2
mov eax, dword [esp + 0x70]
test eax, eax
setne bl
jmp 0x4192e9
cmp dword [esp + 0x70], eax
sete bl
test esi, esi
je 0x419318
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4192ff
test bl, bl
je 0x4192ff
mov eax, 1
jmp 0x419301
xor eax, eax
push eax
push ebp
lea edx, [esp + 0x38]
push 0
push edx
mov ecx, esi
call fcn.00417360
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4192ed
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x419340
cmp eax, 2
je 0x419340
cmp eax, 0xc
je 0x419340
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x419340
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x30]
push eax
call fcn.00413520
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov ecx, eax
pop edi
pop esi
pop ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
pop ebx
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0xc], edx
add esp, 0x50
ret 0x14