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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x49c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x6b
call fcn.0042641f
push 0x6b
mov edx, str._MAX_
call fcn.004030d8
lea eax, [esp + 0x98]
push eax
push 0x69
mov eax, edi
call fcn.0047a9c3
mov ecx, str.Image_File
lea eax, [esp + 0x98]
call fcn.00401031
test eax, eax
jne 0x46bf0c
mov byte [esp + 0x12], 0xff
jmp 0x46bf1c
lea eax, [esp + 0x98]
call fcn.00486b6b
mov byte [esp + 0x12], al
and dword [esp + 0x94], 0
push 0x50
pop esi
push 0x3c
pop edi
push 0x28
pop edx
push 0x14
pop ecx
push 0xa
pop eax
mov ebx, 0xa0
mov dword [esp + 0x88], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x84], edi
mov dword [esp + 0x90], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0xd4]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x44], ebx
xor ebx, ebx
xor edi, edi
cmp eax, edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [0x5a6590]
mov dword [esp + 0x60], 0x208
mov dword [esp + 0x64], 0x190
mov dword [esp + 0x68], 0x140
mov dword [esp + 0x6c], 0xf0
mov dword [esp + 0x70], 0xc8
mov dword [esp + 0x78], 0x78
mov dword [esp + 0x7c], 0x64
mov dword [esp + 0x80], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], 0x18
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x14], ebx
je 0x46c00d
cmp eax, 1
je 0x46c002
add eax, 0xfffffffe
cmp eax, 1
ja 0x46c01a
mov ebx, ecx
lea eax, [esp + 0x2c]
shl ebx, 3
jmp 0x46c016
mov ebx, ecx
lea eax, [esp + 0x44]
shl ebx, 4
jmp 0x46c016
mov ebx, ecx
lea eax, [esp + 0x60]
imul ebx, ebx, 0x34
mov dword [esp + 0x14], eax
cmp byte [esp + 0x12], 0xff
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], edi
je 0x46c0e7
movzx esi, byte [esp + 0x12]
mov eax, dword [edx + 0xca]
imul esi, esi, 0x12a
mov ecx, dword [esi + 0x5a66bb]
call fcn.0043a958
test al, al
je 0x46c0e7
cmp dword [esi + 0x5a65a3], edi
jbe 0x46c0e7
mov eax, ecx
call fcn.0043aa1d
cmp eax, edi
je 0x46c08e
cmp eax, 1
je 0x46c082
add eax, 0xfffffffe
cmp eax, 1
ja 0x46c098
mov dword [0x5a6590], 0x118f
jmp 0x46c098
mov dword [0x5a6590], 0x569
jmp 0x46c098
mov dword [0x5a6590], 0xb1
push 0x54
call fcn.0051fd80
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [esp + 0x20], ebx
je 0x46c248
mov dword [esp + 0x14], ebx
lea ecx, [esi + 0x5a65af]
and dword [ebx + edi*4], 0
mov eax, dword [ecx]
test eax, eax
jbe 0x46c0d3
add eax, 0x1e
xor edx, edx
div dword [0x5a6590]
imul eax, eax, 0xa
mov dword [ebx + edi*4], eax
inc edi
add ecx, 4
cmp edi, 0x15
jl 0x46c0b8
mov ebx, dword [esi + 0x5a65a3]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
xor esi, esi
cmp eax, esi
je 0x46c248
cmp dword [eax], esi
mov dword [esp + 0x24], esi
je 0x46c229
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x46c115
fadd qword [0x5997e0]
xor edx, edx
fstp qword [esp + 0x18]
lea eax, [ebx + 0x1e]
div dword [0x5a6590]
test eax, eax
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
jge 0x46c136
fadd qword [0x5997e0]
fmul qword [0x5997b8]
push ecx
push ecx
fstp qword [esp]
call fcn.005200b0
cmp byte [esp + 0x1a], 0xff
pop ecx
pop ecx
je 0x46c164
test ebx, ebx
jbe 0x46c164
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jnp 0x46c229
jmp 0x46c166
fstp st(0)
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0xca]
cmp eax, 7
jge 0x46c179
cmp eax, 1
jne 0x46c1a5
fld qword [esp + 0x18]
call fcn.00535ff0
cmp eax, 0x18
jne 0x46c1a5
fld qword [esp + 0x18]
push ecx
fmul qword [0x599a48]
push ecx
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fstp qword [esp]
push str._2.1fx
jmp 0x46c1c1
fld qword [esp + 0x18]
push ecx
fmul qword [0x599a48]
push ecx
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fstp qword [esp]
push str._2.0fx
lea eax, [esp + 0x2ac]
push eax
call fcn.00401000
add esp, 0x10
push 0x6b
lea edx, [esp + 0x2a4]
call fcn.004030d8
fld qword [esp + 0x18]
mov eax, edi
mov eax, dword [eax + 0xc2]
fsub qword [eax + 7]
fld qword [0x5998f8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x46c209
push ecx
push ecx
fstp qword [esp]
call fcn.004013ce
jmp 0x46c20d
fstp st(0)
xor al, al
test al, al
je 0x46c218
lea eax, [esi + 1]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
inc esi
lea eax, [eax + esi*4]
cmp dword [eax], 0
jne 0x46c101
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push 0x6b
call fcn.00403128
cmp byte [esp + 0x13], 0
je 0x46c248
push dword [esp + 0x20]
call fcn.00520947
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4