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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov dword [ebp - 0x1c], 2
cmp dword [ebp - 0x1c], 2
je 0x51d8e3
cmp dword [ebp - 0x1c], 2
ja 0x51dad8
cmp dword [ebp - 0x1c], 0
je 0x51d907
cmp dword [ebp - 0x1c], 1
je 0x51dade
jmp 0x51dad8
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x51d8fb
mov dword [ebp - 0x1c], 0
jmp 0x51dad9
mov dword [ebp - 0x1c], 1
jmp 0x51dad9
mov eax, dword [ebp + 0x28]
mov edx, dword [eax]
mov eax, dword [ebp + 0x18]
fld qword [eax]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x44]
mov edi, dword [eax]
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
fld qword [eax]
fstp qword [ebp - 0x38]
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0x38]
mov esi, dword [eax]
mov dword [ebp - 0x48], esi
mov eax, dword [ebp + 8]
fld qword [eax]
fstp qword [ebp - 0x50]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
fld qword [eax]
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov dword [ebp - 0x5c], esi
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 0x40]
mov esi, dword [eax]
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3c]
fld qword [eax]
mov eax, dword [ebp + 0x2c]
fld qword [eax]
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 0x30]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp + 0x54]
mov esi, dword [eax]
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x2c]
fld qword [eax]
mov eax, dword [ebp + 0x2c]
fld qword [eax]
mov eax, dword [ebp + 0x10]
fld qword [eax]
mov eax, dword [ebp + 0xc]
fld qword [eax]
fxch st(7)
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
mov dword [esp + 0xa8], edx
fstp qword [esp + 0xa0]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], edi
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x94], edx
fld qword [ebp - 0x38]
fstp qword [esp + 0x8c]
mov ebx, dword [ebp - 0x30]
mov dword [esp + 0x88], ebx
mov edi, dword [ebp - 0x3c]
mov dword [esp + 0x84], edi
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x80], edx
mov ebx, dword [ebp - 0x44]
mov dword [esp + 0x7c], ebx
mov edi, dword [ebp - 0x48]
mov dword [esp + 0x78], edi
fld qword [ebp - 0x50]
fstp qword [esp + 0x70]
fxch st(5)
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x6c], edx
fstp qword [esp + 0x64]
fxch st(3)
mov ebx, dword [ebp - 0x58]
mov dword [esp + 0x60], ebx
mov edi, dword [ebp - 0x5c]
mov dword [esp + 0x5c], edi
mov edx, dword [ebp - 0x60]
mov dword [esp + 0x58], edx
mov ebx, dword [ebp - 0x64]
mov dword [esp + 0x54], ebx
mov edi, dword [ebp - 0x68]
mov dword [esp + 0x50], edi
mov edx, dword [ebp - 0x6c]
mov dword [esp + 0x4c], edx
fstp qword [esp + 0x44]
fxch st(1)
fstp qword [esp + 0x3c]
mov ebx, dword [ebp - 0x70]
mov dword [esp + 0x38], ebx
mov edi, dword [ebp - 0x74]
mov dword [esp + 0x34], edi
mov edx, dword [ebp - 0x78]
mov dword [esp + 0x30], edx
mov ebx, dword [ebp - 0x7c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
fstp qword [esp + 0x1c]
fstp qword [esp + 0x14]
fstp qword [esp + 0xc]
fstp qword [esp + 4]
mov dword [esp], eax
call sym._writeDestination
mov dword [ebp - 0x1c], 1
jmp 0x51dad9
nop
jmp 0x51d8be
nop
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret