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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [0x4263f8]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x418430
cmp esi, 1
je 0x418430
cmp esi, 0xa
je 0x418430
cmp esi, 0xb
je 0x418430
xor al, al
jmp 0x418432
mov al, 1
xor edx, edx
test al, al
setne dl
inc edx
cmp esi, 2
jne 0x418445
cmp byte [ebx + 3], 1
je 0x41847d
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x418472
cmp edx, 1
jne 0x41845e
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, edi
setne al
jmp 0x41846a
mov ebp, dword [esp + 0x70]
xor eax, eax
cmp ebp, 1
sete al
test al, al
jne 0x41847d
cmp ecx, edi
je 0x418484
cmp dword [ecx + 0xc], edi
jne 0x418484
cmp byte [ecx + 3], 3
jne 0x418484
mov byte [esp + 0x10], 1
jmp 0x418489
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 0x418695
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 0x4184d7
mov dword [esp + 0x30], ecx
cmp eax, edx
mov ebx, eax
je 0x4187b8
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 0x418503
test esi, esi
je 0x418503
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 0x41854c
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.0041adf0
jmp 0x4185bb
lea edx, [esp + 0x20]
mov ecx, ebx
push edx
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x4185bb
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x4185bb
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.0041ae10
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 8]
test edi, edi
je 0x418681
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub ecx, eax
sar ecx, 3
cmp ecx, esi
je 0x418681
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x4185f9
mov eax, dword [esp + 0x70]
test eax, eax
setne byte [esp + 0x6c]
jmp 0x418602
cmp dword [esp + 0x70], eax
sete byte [esp + 0x6c]
test edi, edi
je 0x418681
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41861c
mov al, byte [esp + 0x6c]
test al, al
je 0x41861c
mov ecx, 1
jmp 0x41861e
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
sub edx, eax
sar edx, 3
cmp edx, esi
je 0x41867a
mov al, byte [edi + 3]
cmp al, 2
je 0x418667
cmp al, 3
je 0x418667
mov eax, dword [edi + 8]
push ecx
push ebp
push eax
mov dl, byte [eax + 1]
push esi
cmp dl, 2
jne 0x418658
lea eax, [esp + 0x40]
push eax
call fcn.00413840
add esp, 0x14
jmp 0x41867a
lea ecx, [esp + 0x40]
push ecx
call fcn.004137a0
add esp, 0x14
jmp 0x41867a
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 0x418606
mov eax, dword [esp + 0x48]
add ebx, 8
cmp ebx, eax
jne 0x4184e1
jmp 0x4187b8
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 0x4186e4
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.0041adf0
jmp 0x418751
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.0040b760
mov ecx, eax
call fcn.00408070
test eax, eax
je 0x418751
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.0040b770
mov ecx, eax
call fcn.00408540
test eax, eax
je 0x418751
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.0041ae10
mov esi, dword [ebx + 8]
test esi, esi
je 0x4187b8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub ecx, edx
test ecx, 0xfffffff8
je 0x4187b8
mov ecx, dword [esp + 0x30]
mov eax, 1
cmp ecx, eax
jne 0x418782
mov eax, dword [esp + 0x70]
test eax, eax
setne bl
jmp 0x418789
cmp dword [esp + 0x70], eax
sete bl
test esi, esi
je 0x4187b8
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x41879f
test bl, bl
je 0x41879f
mov eax, 1
jmp 0x4187a1
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 0x41878d
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x4187e0
cmp eax, 2
je 0x4187e0
cmp eax, 0xc
je 0x4187e0
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4187e0
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