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

Disassembly:
push 0xffffffffffffffff
push 0x4eafe8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x254]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x74], ecx
jne 0x461e8a
mov eax, 1
jmp 0x462384
lea esi, [ecx + 0x40]
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, esi
call fcn.00416560
mov ebx, 2
lea ecx, [esp + 0xb0]
push ebx
push ecx
mov ecx, esi
mov dword [esp + 0x24c], ebp
call fcn.00416560
lea edx, [esp + 0x88]
push 3
push edx
mov ecx, esi
mov byte [esp + 0x24c], 1
call fcn.00416560
lea eax, [esp + 0x9c]
push 4
push eax
mov ecx, esi
mov byte [esp + 0x24c], bl
call fcn.00416560
cmp dword [esp + 0x2c], ebp
je 0x461ef7
cmp dword [esp + 0x98], ebp
jne 0x461f09
cmp dword [esp + 0xc0], ebp
je 0x461f5d
cmp dword [esp + 0xac], ebp
je 0x461f5d
lea ecx, [esp + 0x9c]
mov byte [esp + 0x244], bl
call fcn.004ba050
lea ecx, [esp + 0x88]
mov byte [esp + 0x244], 1
call fcn.004ba050
lea ecx, [esp + 0xb0]
mov byte [esp + 0x244], 0
call fcn.004ba050
lea ecx, [esp + 0x1c]
mov dword [esp + 0x244], 0xffffffff
call fcn.004ba050
jmp 0x462382
lea ecx, [esp + 0x9c]
mov byte [esp + 0x244], bl
call fcn.004ba050
lea ecx, [esp + 0x88]
mov byte [esp + 0x244], 1
call fcn.004ba050
lea ecx, [esp + 0xb0]
mov byte [esp + 0x244], 0
call fcn.004ba050
lea ecx, [esp + 0x1c]
mov dword [esp + 0x244], 0xffffffff
call fcn.004ba050
xor ebx, ebx
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov ecx, esi
call fcn.00416560
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x461fc4
inc ebx
lea ecx, [esp + 0x1c]
call fcn.004ba050
inc ebp
cmp ebp, 5
jl 0x461fae
cmp ebx, 4
je 0x462382
lea ecx, [esp + 0x30]
call fcn.004dc560
lea ecx, [esp + 0x60]
mov dword [esp + 0x244], 4
call fcn.004ba030
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 5
call fcn.004ba030
lea ecx, [esp + 0xc4]
mov byte [esp + 0x244], 6
call fcn.0045a2d0
mov ebx, dword [esp + 0x74]
sub esp, 0xbc
mov ecx, esp
mov dword [esp + 0xcc], esp
push ebx
mov byte [esp + 0x304], 7
call fcn.0045a3a0
lea edx, [esp + 0x23c]
lea ecx, [esp + 0x180]
push edx
call fcn.0045a950
lea ecx, [esp + 0x180]
call fcn.0045ae80
sub esp, 0x14
mov ecx, esi
mov eax, esp
mov dword [esp + 0x24], esp
push 0
push eax
call fcn.00416560
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
call fcn.004ba0a0
lea ecx, [esp + 0x1c]
call fcn.004ba050
sub esp, 0x14
mov ecx, esi
mov edx, esp
mov dword [esp + 0x24], esp
push edi
push edx
call fcn.00416560
lea eax, [esp + 0x30]
lea ecx, [esp + 0x74]
push eax
call fcn.004ba0a0
lea ecx, [esp + 0x1c]
call fcn.004ba050
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
add edx, ecx
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x250]
add eax, edx
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
push edi
and eax, ecx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.00416560
test eax, eax
je 0x462105
add eax, 4
jmp 0x462107
xor eax, eax
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
call fcn.004ba050
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
neg eax
sbb eax, eax
lea edx, [esp + 0x14]
and eax, ecx
push edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004dc6b0
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
neg eax
sbb eax, eax
lea ecx, [esp + 0x50]
and eax, ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
call fcn.00434090
add esp, 0x10
call sub.MSVCRT.dll__ftol
cmp eax, 0x50
jl 0x462338
lea ebp, [edi + 2]
cmp ebp, 4
jle 0x462180
sub ebp, 4
lea ecx, [edi + 1]
cmp ecx, 4
jle 0x46218b
sub ecx, 4
lea eax, [esp + 0x4c]
lea edx, [esp + 0x50]
neg eax
sbb eax, eax
push ecx
and eax, edx
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call fcn.00416560
test eax, eax
je 0x4621bc
add eax, 4
jmp 0x4621be
xor eax, eax
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x40], eax
call fcn.004ba050
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], edx
call fcn.004dcae0
test eax, eax
je 0x462338
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x14]
lea eax, [edi + edi*4]
shl eax, 2
mov dword [eax + ecx + 4], edx
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx + 8], edx
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x44]
lea eax, [ebp + ebp*4]
shl eax, 2
mov dword [eax + ecx + 4], edx
mov edx, dword [esp + 0x108]
mov ecx, dword [esp + 0x48]
mov dword [eax + edx + 8], ecx
lea ecx, [esp + 0xc4]
call fcn.0045afe0
lea eax, [esp + 0x78]
push 1
push eax
lea ecx, [esp + 0xcc]
call fcn.0045c8f0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
sub ecx, edx
mov esi, 1
cmp ecx, 0x32
jl 0x46228b
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x78]
sub edx, ecx
cmp edx, 0x32
jge 0x46228d
xor esi, esi
lea ecx, [esp + 0xc4]
call fcn.0046d3c0
test eax, eax
je 0x462338
test esi, esi
je 0x462338
sub esp, 0xbc
lea eax, [esp + 0x180]
mov ecx, esp
mov dword [esp + 0xcc], esp
push eax
call fcn.0045a3a0
lea ecx, [esp + 0x23c]
push ecx
mov ecx, ebx
call fcn.0045a950
lea ecx, [esp + 0x180]
call fcn.0045ae80
mov ecx, ebx
call fcn.0045afe0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x244], 6
call fcn.0045ae80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 5
call fcn.004ba050
lea ecx, [esp + 0x60]
mov byte [esp + 0x244], 4
call fcn.004ba050
lea ecx, [esp + 0x30]
mov dword [esp + 0x244], 0xffffffff
call fcn.004dc5b0
mov eax, 1
jmp 0x462384
lea ecx, [esp + 0xc4]
mov byte [esp + 0x244], 6
call fcn.0045ae80
lea ecx, [esp + 0x4c]
mov byte [esp + 0x244], 5
call fcn.004ba050
lea ecx, [esp + 0x60]
mov byte [esp + 0x244], 4
call fcn.004ba050
lea ecx, [esp + 0x30]
mov dword [esp + 0x244], 0xffffffff
call fcn.004dc5b0
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x238
ret 0xc