Function at 0x40e866
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], 2
cmp dword [ebp - 0x1c], 2
je 0x40e8a2
cmp dword [ebp - 0x1c], 2
ja 0x40ea62
cmp dword [ebp - 0x1c], 0
je 0x40ea1f
cmp dword [ebp - 0x1c], 1
je 0x40ea68
jmp 0x40ea62
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov dword [ebp - 0x48], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
fld1
fstp qword [esp + 0x94]
mov dword [esp + 0x90], 5
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], esi
mov esi, dword [ebp - 0x2c]
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], 9
mov dword [esp + 0x78], 0x8a
mov ebx, dword [ebp - 0x30]
mov dword [esp + 0x74], ebx
mov esi, dword [ebp - 0x34]
mov dword [esp + 0x70], esi
fld qword [0x58fa48]
fstp qword [esp + 0x68]
mov ebx, dword [ebp - 0x38]
mov dword [esp + 0x64], ebx
fld qword [0x58fa70]
fstp qword [esp + 0x5c]
mov esi, dword [ebp - 0x3c]
mov dword [esp + 0x58], esi
fld qword [0x58fa78]
fstp qword [esp + 0x50]
mov edx, dword [ebp - 0x40]
mov dword [esp + 0x4c], edx
fldz
fstp qword [esp + 0x44]
mov ebx, dword [ebp - 0x44]
mov dword [esp + 0x40], ebx
mov esi, dword [ebp - 0x48]
mov dword [esp + 0x3c], esi
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], 2
fld qword [0x58fa50]
fstp qword [esp + 0x2c]
mov ebx, dword [ebp - 0x50]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 9
mov esi, dword [ebp - 0x54]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x34
fld qword [0x58fa60]
fstp qword [esp]
call sym._ExportWinAPI
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov dword [ebp - 0x1c], 0
jmp 0x40ea63
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ebx, eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
call ebx
sub esp, 0x14
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov dword [ebp - 0x1c], 1
jmp 0x40ea63
nop
jmp 0x40e879
nop
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret