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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
test eax, eax
push ebp
push esi
je 0x46d3cf
push eax
call fcn.00500319
add esp, 4
mov dword [ebx], 0
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x10], eax
je 0x46d435
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d3e0
sub eax, edx
sar eax, 1
mov esi, eax
xor ecx, ecx
lea ebp, [esi + 1]
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005002a8
add esp, 4
lea ecx, [ebp + ebp]
push ecx
push 0
push eax
mov dword [ebx], eax
call fcn.00508d80
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
add esp, 0xc
lea edx, [esi + esi]
push edx
push eax
push ecx
call fcn.00505700
add esp, 0xc
mov eax, dword [edi + 8]
test eax, eax
je 0x46d47f
mov edx, dword [edi + 0xc]
sub edx, eax
sar edx, 2
je 0x46d47f
test eax, eax
je 0x46d454
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x46d459
call fcn.00500ad0
mov edx, dword [edi + 8]
cmp dword [edx], 0
je 0x46d47f
mov eax, edx
test eax, eax
je 0x46d471
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
jne 0x46d476
call fcn.00500ad0
mov edx, dword [edi + 8]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x46d484
mov eax, 0xff00ff
mov dword [ebx + 4], eax
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
push ecx
mov ecx, dword [edi + 0x24]
push edx
mov edx, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x18]
push edx
push eax
mov eax, dword [edi + 0x14]
push ecx
lea esi, [ebx + 8]
call fcn.0046bf00
mov edx, dword [edi + 0x58]
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
push edx
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [edi + 0x48]
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x3c]
push ecx
push edx
lea esi, [ebx + 0x30]
call fcn.0046bf00
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
mov edx, dword [edi + 0x78]
push eax
mov eax, dword [edi + 0x74]
push ecx
mov ecx, dword [edi + 0x70]
push edx
mov edx, dword [edi + 0x6c]
push eax
mov eax, dword [edi + 0x68]
push ecx
push edx
push eax
mov eax, dword [edi + 0x64]
lea esi, [ebx + 0x58]
call fcn.0046bf00
mov ecx, dword [edi + 0xa8]
mov edx, dword [edi + 0xa4]
mov eax, dword [edi + 0xa0]
push ecx
mov ecx, dword [edi + 0x9c]
push edx
mov edx, dword [edi + 0x98]
push eax
mov eax, dword [edi + 0x94]
push ecx
mov ecx, dword [edi + 0x90]
push edx
push eax
mov eax, dword [edi + 0x8c]
push ecx
lea esi, [ebx + 0x80]
call fcn.0046bf00
mov edx, dword [edi + 0xd0]
mov eax, dword [edi + 0xcc]
mov ecx, dword [edi + 0xc8]
push edx
mov edx, dword [edi + 0xc4]
push eax
mov eax, dword [edi + 0xc0]
push ecx
mov ecx, dword [edi + 0xbc]
push edx
push eax
push ecx
mov edx, dword [edi + 0xb8]
mov eax, dword [edi + 0xb4]
push edx
lea esi, [ebx + 0xa8]
call fcn.0046bf00
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x46d5dd
mov ecx, dword [edi + 0xe4]
sub ecx, eax
sar ecx, 2
je 0x46d5dd
test eax, eax
je 0x46d5ab
mov edx, dword [edi + 0xe4]
sub edx, eax
sar edx, 2
jne 0x46d5b0
call fcn.00500ad0
mov eax, dword [edi + 0xe0]
cmp dword [eax], 0
je 0x46d5dd
test eax, eax
je 0x46d5cc
mov ecx, dword [edi + 0xe4]
sub ecx, eax
sar ecx, 2
jne 0x46d5d1
call fcn.00500ad0
mov edx, dword [edi + 0xe0]
mov eax, dword [edx]
mov eax, dword [eax]
jmp 0x46d5e2
mov eax, 0xff00ff
mov dword [ebx + 0xd0], eax
mov ecx, dword [edi + 0xec]
lea eax, [ebx + 0xd8]
mov dword [ebx + 0xd4], ecx
lea ebp, [edi + 0xf0]
mov dword [esp + 0x14], eax
call fcn.00468ff0
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00488e80
test eax, eax
jle 0x46d665
jmp 0x46d624
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x46d637
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x46d63c
call fcn.00500ad0
mov edx, dword [ebp + 4]
lea ebx, [edx + esi*4]
mov esi, dword [esp + 0x14]
call fcn.0046ee10
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00488e80
cmp esi, eax
jl 0x46d620
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0xe8]
lea ebp, [edi + 0x100]
mov dword [esp + 0x14], eax
call fcn.00468ff0
xor esi, esi
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00488e80
test eax, eax
jle 0x46d6d5
jmp 0x46d694
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x46d6a7
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x46d6ac
call fcn.00500ad0
mov eax, dword [ebp + 4]
lea ebx, [eax + esi*4]
mov esi, dword [esp + 0x14]
call fcn.0046ee10
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebp
mov dword [esp + 0x10], esi
call fcn.00488e80
cmp esi, eax
jl 0x46d690
mov ebx, dword [esp + 0x1c]
fld qword [edi + 0x110]
pop esi
fstp qword [ebx + 0xf8]
pop ebp
fld qword [edi + 0x118]
mov eax, 1
fstp qword [ebx + 0x100]
fld qword [edi + 0x120]
fstp qword [ebx + 0x108]
pop ebx
add esp, 0xc
ret 4