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

Disassembly:
sub esp, 0x118
cmp dword [0x50e820], 0
push ebx
push esi
push edi
push ebp
jl 0x46c047
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x130]
sub eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x46c047
mov eax, dword [0x51980c]
add eax, 0x640
cmp dword [esp + 0x14], 6
mov dword [esp + 0x18], eax
jl 0x46bd62
mov esi, dword [esp + 0x14]
cmp esi, 0x1b6
ja 0x46bd62
shl ecx, 3
push 0
push ecx
mov eax, dword [0x5188fc]
mov dword [esp + 0x28], 1
push eax
call fcn.004c4160
mov edx, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esi*8]
mov eax, dword [0x5188fc]
push ecx
push edx
push eax
call fcn.004c70b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0x46b460
push 8
push esi
push ecx
call fcn.004bdab0
add esp, 0x10
jmp 0x46bd76
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], ecx
mov ebp, dword [esp + 0x12c]
mov dword [esp + 0x24], 0
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x46c037
test ecx, ecx
je 0x46c037
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
and eax, 0xff0000
cmp eax, 0x10000
jne 0x46c025
cmp dword [esp + 0x20], 0
je 0x46bde4
mov eax, dword [esp + 0x14]
push 0x46b460
mov ecx, dword [esp + 0x1c]
push 8
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.004bf390
add esp, 0x14
jmp 0x46be0d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x134]
lea edx, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.0046c080
add esp, 0x18
test eax, eax
je 0x46c013
push 0
mov eax, dword [eax + 4]
push eax
mov ecx, dword [0x5188f8]
push ecx
call fcn.004c4160
lea ecx, [esp + 0x34]
add esp, 0xc
mov edx, dword [0x5188f8]
push 0xc
push ecx
push edx
call fcn.004c70b0
lea ecx, [esp + 0x64]
add esp, 0xc
mov edx, dword [0x5188f8]
push 1
push ecx
push edx
call fcn.004c70b0
lea ecx, [esp + 0x74]
add esp, 0xc
mov edx, dword [0x5188f8]
xor esi, esi
push 0x40
push ecx
push edx
call fcn.004c70b0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor ebx, ebx
mov edi, dword [ecx + 0x18]
and edi, 0x30
shr edi, 4
cmp dword [esp + 0x28], ebx
jle 0x46bf5b
test esi, esi
jne 0x46c013
lea eax, [esp + 0xc8]
push 1
push eax
mov ecx, dword [0x5188f8]
push ecx
call fcn.004c70b0
lea ecx, [esp + 0xe4]
add esp, 0xc
mov edx, dword [0x5188f8]
push 0x30
push ecx
push edx
call fcn.004c70b0
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0xd4]
add esp, 0xc
cmp byte [ecx + 0x10], dl
jne 0x46bf4b
mov eax, dword [ecx + 0x18]
and eax, 0x30
shr eax, 4
cmp eax, edi
jne 0x46bf4b
fld qword [ecx + 0x20]
fsub qword [esp + 0xd8]
fabs
fcomp qword [0x4f9a40]
fnstsw ax
test ah, 0x41
je 0x46bf4b
fld qword [ecx + 0x28]
fsub qword [esp + 0xe0]
fabs
fcomp qword [0x4f9a40]
fnstsw ax
test ah, 0x41
je 0x46bf4b
fld qword [ecx + 0x30]
fsub qword [esp + 0xe8]
fabs
fcomp qword [0x4f9a40]
fnstsw ax
test ah, 0x41
je 0x46bf4b
fld qword [ecx + 0x38]
fsub qword [esp + 0xf0]
fabs
fcomp qword [0x4f9a40]
fnstsw ax
test ah, 0x41
je 0x46bf4b
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], ecx
jmp 0x46bf50
mov esi, 1
inc ebx
cmp dword [esp + 0x28], ebx
jg 0x46be87
test esi, esi
jne 0x46c013
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x44], eax
cmp eax, ebx
jle 0x46bf95
test esi, esi
je 0x46bf95
mov eax, dword [esi + 4]
push esi
push ebp
inc ebx
mov dword [esp + 0x48], eax
call fcn.0046c350
mov esi, dword [esp + 0x48]
add esp, 8
cmp dword [esp + 0x44], ebx
jg 0x46bf75
cmp byte [esp + 0x58], 6
jne 0x46bfba
lea eax, [esp + 0x88]
lea ecx, [esp + 0x78]
lea edx, [esp + 0x68]
push eax
push ecx
push edx
push 0
call fcn.004195b0
add esp, 0x10
jmp 0x46bfde
lea eax, [esp + 0x98]
lea ecx, [esp + 0x88]
lea edx, [esp + 0x78]
push eax
lea eax, [esp + 0x6c]
push ecx
push edx
push eax
push 0
call fcn.00419660
add esp, 0x14
shl edi, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x18]
add ecx, 0x18
xor edi, eax
and edi, 0x30
xor edi, eax
mov dword [ecx], edi
mov eax, dword [esp + 0x10]
push eax
push esi
push ebp
call fcn.004184f0
mov eax, dword [esp + 0x34]
sub dword [esp + 0x28], eax
inc dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x10]
and dword [eax + 0x18], 0xff00ffff
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x24]
cmp eax, dword [esp + 0x24]
jg 0x46bd97
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x118
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x118
ret