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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [0x4263fc]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x418840
cmp esi, 1
je 0x418840
cmp esi, 0xa
je 0x418840
cmp esi, 0xb
je 0x418840
xor al, al
jmp 0x418842
mov al, 1
xor edx, edx
test al, al
setne dl
inc edx
cmp esi, 2
jne 0x418855
cmp byte [ebx + 3], 1
je 0x41888d
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x418882
cmp edx, 1
jne 0x41886e
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, edi
setne al
jmp 0x41887a
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, 1
sete al
test al, al
jne 0x41888d
cmp ecx, edi
je 0x418894
cmp dword [ecx + 0xc], edi
jne 0x418894
cmp byte [ecx + 3], 3
jne 0x418894
mov byte [esp + 0x10], 1
jmp 0x418899
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 0x418aa5
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 0x4188e7
mov dword [esp + 0x30], ecx
cmp eax, edx
mov ebx, eax
je 0x418bc8
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 0x418913
test esi, esi
je 0x418913
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 0x41895c
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.0041ae30
jmp 0x4189cb
lea edx, [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x4189cb
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x4189cb
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.0041aee0
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
test edi, edi
je 0x418a91
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 3
cmp ecx, esi
je 0x418a91
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x418a09
mov eax, dword [esp + 0x70]
test eax, eax
setne byte [esp + 0x6c]
jmp 0x418a12
cmp dword [esp + 0x70], eax
sete byte [esp + 0x6c]
test edi, edi
je 0x418a91
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x418a2c
mov al, byte [esp + 0x6c]
test al, al
je 0x418a2c
mov ecx, 1
jmp 0x418a2e
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
sar edx, 3
cmp edx, esi
je 0x418a8a
mov al, byte [edi + 3]
cmp al, 2
je 0x418a77
cmp al, 3
je 0x418a77
mov eax, dword [edi + 8]
push ecx
push ebp
push eax
mov dl, byte [eax + 1]
push esi
cmp dl, 2
jne 0x418a68
lea eax, [esp + 0x40]
push eax
call fcn.00413840
add esp, 0x14
jmp 0x418a8a
lea ecx, [esp + 0x40]
push ecx
call fcn.004137a0
add esp, 0x14
jmp 0x418a8a
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 0x418a16
mov eax, dword [esp + 0x48]
add ebx, 8
cmp ebx, eax
jne 0x4188f1
jmp 0x418bc8
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 0x418af4
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.0041ae30
jmp 0x418b61
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x418b61
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x418b61
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.0041aee0
mov esi, dword [ebx + 8]
test esi, esi
je 0x418bc8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub ecx, edx
test ecx, 0xfffffff8
je 0x418bc8
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x418b92
mov eax, dword [esp + 0x70]
test eax, eax
setne bl
jmp 0x418b99
cmp dword [esp + 0x70], eax
sete bl
test esi, esi
je 0x418bc8
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x418baf
test bl, bl
je 0x418baf
mov eax, 1
jmp 0x418bb1
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 0x418b9d
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x418bf0
cmp eax, 2
je 0x418bf0
cmp eax, 0xc
je 0x418bf0
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x418bf0
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