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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 2
je 0x51087e
cmp dword [ebp - 0x1c], 2
ja 0x510a1c
cmp dword [ebp - 0x1c], 0
je 0x510894
cmp dword [ebp - 0x1c], 1
je 0x510a22
jmp 0x510a1c
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
jmp 0x510a1d
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x14]
mov esi, dword [eax]
mov dword [ebp - 0x48], esi
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
fld qword [eax]
fxch st(7)
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
fstp qword [esp + 0x94]
fxch st(5)
mov dword [esp + 0x90], edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x8c], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x88], edx
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x84], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x80], edx
fstp qword [esp + 0x78]
fxch st(3)
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x74], edx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x70], edx
fstp qword [esp + 0x68]
fxch st(1)
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
fstp qword [esp + 0x58]
mov edx, dword [ebp - 0x44]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], 9
fstp qword [esp + 0x48]
fstp qword [esp + 0x40]
mov edx, dword [ebp - 0x48]
mov dword [esp + 0x3c], edx
fstp qword [esp + 0x34]
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x50]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x800
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp - 0x58]
mov dword [esp + 0xc], ebx
fstp qword [esp + 4]
mov dword [esp], eax
call sym._ByteAlloc
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [ebp - 0x1c], 2
jmp 0x510a1d
nop
jmp 0x510859
nop
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret