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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 2
je 0x5072a6
cmp dword [ebp - 0x1c], 2
ja 0x5072a0
cmp dword [ebp - 0x1c], 0
je 0x5070e8
cmp dword [ebp - 0x1c], 1
je 0x506f2d
jmp 0x5072a0
mov eax, dword [ebp + 0x6c]
fld qword [eax]
mov eax, dword [ebp + 0x10]
fld qword [eax]
fstp qword [ebp - 0x30]
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov eax, dword [ebp + 0x28]
mov edi, dword [eax]
mov eax, dword [ebp + 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x3c]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp + 0x70]
fld qword [eax]
fstp qword [ebp - 0x48]
mov eax, dword [ebp + 0x74]
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0x10]
fld qword [eax]
mov eax, dword [ebp + 0x58]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x64]
fld qword [eax]
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x68]
mov ebx, dword [eax]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x44]
mov edx, dword [eax]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp + 0x24]
fld qword [eax]
mov eax, dword [ebp + 0x58]
mov ebx, dword [eax]
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 0x48]
mov edx, dword [eax]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0x68]
mov ebx, dword [eax]
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp + 0x10]
fld qword [eax]
mov eax, dword [ebp + 0x2c]
fld qword [eax]
mov eax, dword [ebp + 0x58]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x68]
mov edx, dword [eax]
mov eax, dword [ebp + 0x70]
fld qword [eax]
fxch st(7)
fstp qword [esp + 0xa0]
fld qword [ebp - 0x30]
fstp qword [esp + 0x98]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x80], eax
fld qword [ebp - 0x48]
fstp qword [esp + 0x78]
fxch st(5)
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x64]
fxch st(3)
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x60], eax
fstp qword [esp + 0x58]
fxch st(1)
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x48], eax
fstp qword [esp + 0x40]
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
mov dword [esp + 0x1c], ebx
fstp qword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
fstp qword [esp + 4]
mov dword [esp], 0x808
call sym._writeDestShort
mov dword [ebp - 0x1c], 2
jmp 0x5072a1
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x6c]
fld qword [eax]
fstp qword [ebp - 0x30]
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
mov eax, dword [ebp + 0x5c]
mov edi, dword [eax]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x3c]
mov edx, dword [eax]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp + 0x40]
fld qword [eax]
fstp qword [ebp - 0x48]
mov eax, dword [ebp + 0x74]
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp + 0x6c]
fld qword [eax]
mov eax, dword [ebp + 0x58]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x64]
fld qword [eax]
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x30]
mov ebx, dword [eax]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp + 0x2c]
fld qword [eax]
mov eax, dword [ebp + 0x68]
mov ebx, dword [eax]
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp + 0x60]
mov edx, dword [eax]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp + 0x68]
mov ebx, dword [eax]
mov dword [ebp - 0x78], ebx
mov eax, dword [ebp + 0x24]
fld qword [eax]
mov eax, dword [ebp + 0x24]
fld qword [eax]
mov eax, dword [ebp + 0x54]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x64]
fld qword [eax]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x30]
mov edx, dword [eax]
mov eax, dword [ebp + 0x4c]
fld qword [eax]
fxch st(7)
fstp qword [esp + 0xa0]
fld qword [ebp - 0x30]
fstp qword [esp + 0x98]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x84], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x80], eax
fld qword [ebp - 0x48]
fstp qword [esp + 0x78]
fxch st(5)
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x70], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x64]
fxch st(3)
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x60], eax
fstp qword [esp + 0x58]
fxch st(1)
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x48], eax
fstp qword [esp + 0x40]
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
mov dword [esp + 0x1c], ebx
fstp qword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
fstp qword [esp + 4]
mov dword [esp], 0x8b1f
call sym._writeDestShort
mov dword [ebp - 0x1c], 1
jmp 0x5072a1
nop
jmp 0x506f04
nop
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret