Function at 0x516b59
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], 2
cmp dword [ebp - 0x1c], 2
je 0x516b95
cmp dword [ebp - 0x1c], 2
ja 0x516d79
cmp dword [ebp - 0x1c], 0
je 0x516d66
cmp dword [ebp - 0x1c], 1
je 0x516d7f
jmp 0x516d79
mov eax, dword [ebp + 0x30]
fld qword [eax]
mov eax, dword [ebp + 0x38]
fld qword [eax]
mov eax, dword [ebp + 0x40]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x28]
fld qword [eax]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp + 0x3c]
fld qword [eax]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp + 0x4c]
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0x14]
fld qword [eax]
mov eax, dword [ebp + 0x24]
mov esi, dword [eax]
mov dword [ebp - 0x48], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ebp - 0x4c], edi
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x38]
fld qword [eax]
mov eax, dword [ebp + 0x40]
mov ecx, dword [eax]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
fld qword [eax]
fstp qword [ebp - 0x60]
mov eax, dword [ebp + 0x20]
mov ebx, dword [eax]
mov dword [ebp - 0x58], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0x64], esi
mov eax, dword [ebp + 0x44]
fld qword [eax]
fxch st(7)
mov eax, dword [ebp + 0x24]
mov edi, dword [eax]
mov dword [ebp - 0x68], edi
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x50]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov eax, dword [ebp + 0x4c]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x50]
mov eax, dword [eax]
fstp qword [esp + 0xa8]
fxch st(5)
fstp qword [esp + 0xa0]
fxch st(3)
mov dword [esp + 0x9c], edx
mov dword [esp + 0x98], 0x58dda0
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x94], edx
fstp qword [esp + 0x8c]
fxch st(1)
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x88], edx
fstp qword [esp + 0x80]
mov edx, dword [ebp - 0x34]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], 0x58dda0
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], 0x588430
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x6c], edx
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x68], edx
mov edx, dword [ebp - 0x44]
mov dword [esp + 0x64], edx
fstp qword [esp + 0x5c]
mov edx, dword [ebp - 0x48]
mov dword [esp + 0x58], edx
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x54], edx
fstp qword [esp + 0x4c]
mov edx, dword [ebp - 0x50]
mov dword [esp + 0x48], edx
fstp qword [esp + 0x40]
mov edx, dword [ebp - 0x54]
mov dword [esp + 0x3c], edx
fld qword [ebp - 0x60]
fstp qword [esp + 0x34]
mov edx, dword [ebp - 0x58]
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x64]
mov dword [esp + 0x2c], edx
fstp qword [esp + 0x24]
mov edx, dword [ebp - 0x68]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x6c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x588430
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov ecx, dword [ebp - 0x70]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._RemoveAndReplace
mov edx, dword [ebp + 0x58]
mov dword [edx], eax
mov dword [ebp - 0x1c], 0
jmp 0x516d7a
mov eax, dword [ebp + 0x58]
mov edx, dword [eax]
mov eax, dword [ebp + 0x54]
mov dword [eax], edx
mov dword [ebp - 0x1c], 1
jmp 0x516d7a
nop
jmp 0x516b6c
nop
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret