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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov ebx, ecx
mov edi, dword [esp + 0x78]
mov ebp, dword [edi]
mov eax, dword [ebp]
lea esi, [esp + 0xc]
mov ecx, esi
push ebp
call dword [eax + 0xb0]
mov eax, dword [ebp]
lea ecx, [esp + 0x58]
push ebp
call dword [eax + 0xb4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
movsd xmm0, qword [esp + 0xc]
movsd qword [esp + 0x4c], xmm0
mov dword [esp + 0x14], eax
movsd qword [esp + 0xc], xmm0
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x48], ebp
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x40], xmm0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
jmp 0x5404da
mov esi, eax
mov ebp, dword [esp + 0x28]
nop
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push esi
call dword [eax + 0x44]
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x5404fa
mov ecx, dword [esp + 0xc]
xor ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
xor edx, dword [esp + 0x44]
or edx, ecx
je 0x54066e
movsd xmm0, qword [esp + 0xc]
movsd qword [esp + 0x1c], xmm0
mov edx, dword [eax]
sub esp, 0xc
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0xc]
call dword [edx + 0x48]
test byte [esp + 8], 1
jne 0x540550
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp ecx, 6
jne 0x5405b0
mov ecx, dword [eax]
mov edx, 0x6164702e
xor ecx, edx
movzx eax, word [eax + 4]
xor eax, 0x6174
or eax, ecx
jne 0x5404d0
jmp 0x5405d1
mov eax, dword [esp]
mov dword [esp], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004077c0
add esp, 0xc
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x540582
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 8], 1
je 0x5404d0
mov ecx, dword [esp]
mov dword [esp], 0
test ecx, ecx
je 0x5404d0
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5404d0
jbe 0x5404d0
mov ecx, dword [eax]
mov edx, 0x6164702e
xor ecx, edx
mov eax, dword [eax + 3]
mov edx, 0x24617461
xor eax, edx
or eax, ecx
jne 0x5404d0
mov ecx, dword [edi]
mov ebp, esi
push esi
call fcn.00550b94
mov dword [esp], 0
mov dword [esp + 4], 0
lea ecx, [esp + 0x1c]
mov edx, esp
push edx
push eax
mov esi, edi
push dword [edi]
call fcn.00550bbe
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x540678
mov ecx, dword [esp + 4]
test ecx, ecx
mov edi, esi
mov eax, ebp
je 0x5404c9
mov eax, ecx
mov edx, 0xaaaaaaab
mul edx
lea eax, [esp + 0xc]
cmp ecx, 0xc
jb 0x5404c9
mov ecx, dword [esp]
mov dword [esp + 0x30], ecx
shr edx, 3
shl edx, 2
lea ebx, [edx + edx*2]
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [esp + 0x30]
lea ebp, [ecx + esi]
mov ecx, dword [edi]
push eax
call fcn.00550b94
mov ecx, dword [esp + 0x2c]
push ebp
push 0
push esi
push eax
push edi
call fcn.005400d0
lea eax, [esp + 0xc]
add esi, 0xc
cmp ebx, esi
jne 0x540640
jmp 0x5404c9
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esi]
call fcn.00550e34
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x44]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.0052da00
int3