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

Disassembly:
sub esp, 0x134
mov eax, dword [0x46b014]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push esi
push edi
push 2
pop eax
push 3
mov word [esp + 0x1a], ax
xor ecx, ecx
mov word [esp + 0x1c], ax
inc ecx
mov word [esp + 0x1e], ax
pop eax
push 4
mov word [esp + 0x20], ax
mov word [esp + 0x22], ax
mov word [esp + 0x24], ax
pop eax
push 5
mov word [esp + 0x26], ax
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
pop eax
push 6
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
mov word [esp + 0x32], ax
pop eax
push 7
mov word [esp + 0x34], ax
mov word [esp + 0x36], ax
mov word [esp + 0x38], ax
pop eax
push 8
mov edx, dword [esp + 0x14c]
mov edi, dword [esp + 0x150]
mov word [esp + 0x3a], ax
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], ax
mov word [esp + 0x40], ax
pop eax
push 9
mov word [esp + 0x42], ax
mov word [esp + 0x44], ax
mov word [esp + 0x46], ax
pop eax
push 0xa
pop ebp
push 0xb
mov word [esp + 0x48], ax
mov word [esp + 0x4a], ax
mov word [esp + 0x4c], ax
pop eax
push 0xc
mov word [esp + 0x56], ax
mov word [esp + 0x58], ax
mov word [esp + 0x5a], ax
pop eax
push 0xd
mov word [esp + 0x5c], ax
mov word [esp + 0x5e], ax
mov word [esp + 0x60], ax
pop eax
push 0xe
mov word [esp + 0x62], ax
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
mov word [esp + 0x68], ax
pop eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], cx
mov word [esp + 0x14], cx
mov word [esp + 0x4a], bp
mov word [esp + 0x4c], bp
mov word [esp + 0x4e], bp
mov word [esp + 0x50], bp
mov word [esp + 0x66], ax
mov word [esp + 0x68], ax
mov word [esp + 0x6a], ax
push 0xf
pop eax
push 0x10
mov word [esp + 0x70], ax
xor ebx, ebx
mov word [esp + 0x72], ax
mov word [esp + 0x74], ax
pop eax
push 0x11
mov word [esp + 0x76], ax
mov word [esp + 0x78], ax
mov word [esp + 0x7a], ax
mov word [esp + 0x7c], ax
pop eax
push 0x12
mov word [esp + 0x7e], ax
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
pop eax
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
mov word [esp + 0x84], ax
push 0x13
pop eax
mov word [esp + 0x86], ax
mov word [esp + 0x88], ax
mov word [esp + 0x8a], ax
mov word [esp + 0x8c], ax
push 0x14
pop eax
mov word [esp + 0x8e], ax
mov eax, edx
or eax, ecx
bsr esi, edi
je 0x402ac6
lea eax, [esi + 0x20]
jmp 0x402ac9
bsr eax, eax
xor eax, 0x3f
mov dword [esp + 0xa0], ebp
xor eax, 0x3f
mov dword [esp + 0xa4], ebx
xorps xmm0, xmm0
mov dword [esp + 0xa8], 0x64
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x98], xmm0
movzx eax, word [esp + eax*2 + 0x10]
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], 0x3e8
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], 0x2710
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], 0x186a0
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], 0xf4240
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], 0x989680
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], 0x5f5e100
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], 0x3b9aca00
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], 0x540be400
mov dword [esp + 0xec], 2
mov dword [esp + 0xf0], 0x4876e800
mov dword [esp + 0xf4], 0x17
mov dword [esp + 0xf8], 0xd4a51000
mov dword [esp + 0xfc], 0xe8
mov dword [esp + 0x100], 0x4e72a000
mov dword [esp + 0x104], 0x918
mov dword [esp + 0x108], 0x107a4000
mov dword [esp + 0x10c], 0x5af3
mov dword [esp + 0x110], 0xa4c68000
mov dword [esp + 0x114], 0x38d7e
mov dword [esp + 0x118], 0x6fc10000
mov dword [esp + 0x11c], 0x2386f2
mov dword [esp + 0x120], 0x5d8a0000
mov dword [esp + 0x124], 0x1634578
mov dword [esp + 0x128], 0xa7640000
mov dword [esp + 0x12c], 0xde0b6b3
mov dword [esp + 0x130], 0x89e80000
mov dword [esp + 0x134], 0x8ac72304
cmp edi, dword [esp + eax*8 + 0x94]
ja 0x402c77
jb 0x402c79
cmp edx, dword [esp + eax*8 + 0x90]
jb 0x402c79
mov ecx, ebx
pop edi
pop esi
sub eax, ecx
mov ecx, dword [esp + 0x134]
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dd4f
add esp, 0x134
ret