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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov dword [esp + 0x20], 0
jle 0x502376
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
sub ebx, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], ebx
jmp 0x502119
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0xc]
push 0xc0
push 1
call fcn.00547150
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x5023a1
mov ecx, dword [edi]
push 0
push 0
push 0
push 0
push 0
or ecx, 0x140
push 1
push edi
mov dword [edi], ecx
mov dword [esp + 0x30], 1
call fcn.00489220
mov ebx, dword [ebx + esi]
mov eax, dword [ebp + 0x1c]
add esp, 0x1c
dec ebx
test eax, eax
jne 0x50224e
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x74], edx
lea edx, [esp + 0x78]
fld qword [eax + ecx*8]
fsub qword [eax]
lea ecx, [eax + ecx*8]
push edx
fstp qword [esp + 0x7c]
fld qword [ecx + 8]
fsub qword [eax + 8]
fstp qword [esp + 0x84]
call fcn.004189e0
mov esi, 1
add esp, 4
cmp ebx, esi
fstp st(0)
jle 0x50221a
mov dword [esp + 0x14], 0x18
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
lea eax, [edx + ecx]
mov ecx, dword [edx + ecx]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x3c], edx
call fcn.00418ba0
fcomp qword [ebp + 0x14]
add esp, 8
fnstsw ax
test ah, 0x41
je 0x50221a
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x18
cmp esi, ebx
mov dword [esp + 0x14], ecx
jl 0x5021c5
xor eax, eax
cmp esi, ebx
setl al
test eax, eax
mov dword [esp + 0x14], eax
jne 0x50224a
mov eax, dword [edi]
lea edx, [esp + 0x68]
and al, 0xbf
push edx
mov dword [edi], eax
call fcn.00448bb0
add esp, 4
mov dword [edi + 0xa4], eax
test eax, eax
je 0x5023a1
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
mov ecx, 6
lea edi, [esp + 0x50]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x502283
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x54]
mov edx, dword [ecx + 0xa4]
add edx, 0x60
push edx
push eax
call fcn.004464c0
add esp, 0xc
cmp ebx, 1
mov dword [esp + 0x1c], 1
jl 0x50233f
mov dword [esp + 0x18], 0x18
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x38]
mov edx, dword [ecx]
mov ecx, 6
add esi, edx
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x5022dc
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x38]
push esi
lea eax, [esp + 0x54]
push edx
push eax
call fcn.00440210
add esp, 0xc
test eax, eax
je 0x50237f
jmp 0x502314
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x3c]
mov edx, dword [esi + 0xa4]
add edx, 0x60
push edx
push eax
call fcn.004464c0
lea ecx, [esp + 0x44]
push esi
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.0043f9f0
add esp, 0x18
test eax, eax
je 0x502394
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
inc eax
mov ecx, 6
lea esi, [esp + 0x38]
lea edi, [esp + 0x50]
add edx, 0x18
cmp eax, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jle 0x50229c
mov esi, dword [esp + 0x10]
push esi
call fcn.00441c50
push esi
push 0x585050
call fcn.004894b0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], edx
jl 0x502111
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004888a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004888a0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret