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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4c
mov ebp, dword [esp + 0x6c]
cmp ebp, 2
jb 0x5395d3
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
jne 0x5395db
mov esi, dword [edx]
mov edi, dword [eax]
sub esp, 0x18
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0xc], xmm0
mov eax, dword [esi - 4]
mov dword [esp + 8], eax
movsd xmm0, qword [esi - 0xc]
movsd qword [esp], xmm0
call fcn.005397e0
test al, al
je 0x5395d3
add esi, 0xfffffff4
mov eax, dword [edi + 8]
mov dword [esp + 0x28], eax
movsd xmm0, qword [edi]
movsd qword [esp + 0x20], xmm0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [esi]
movsd qword [edi], xmm0
mov eax, dword [esp + 0x28]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x20]
movsd qword [esi], xmm0
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebp, 0x80
jg 0x539600
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, dword [edx]
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x1c]
push ecx
push eax
push edx
call fcn.00539950
add esp, 0x58
jmp 0x5395d6
mov ebx, dword [esp + 0x70]
mov esi, ebp
shr esi, 1
mov edi, dword [eax]
lea eax, [esi + esi*2]
mov dword [esp + 8], eax
lea edx, [edi + eax*4]
mov eax, ebp
sub eax, esi
mov dword [esp], eax
cmp ebp, dword [esp + 0x74]
jle 0x53969f
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
push dword [esp + 0x74]
push ebx
push esi
push ecx
push edx
push edi
mov ebp, edx
mov dword [esp + 0x1c], edx
call fcn.00539550
add esp, 0x18
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x64]
mov ebp, dword [eax]
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x14]
push dword [esp + 0x74]
push ebx
push dword [esp + 8]
push dword [esp + 0x74]
push ebp
push eax
call fcn.00539550
add esp, 0x18
mov dword [esp + 0x10], edi
mov eax, dword [esp + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x74]
push ebx
push dword [esp + 8]
push esi
push dword [esp + 0x78]
push ebp
push ecx
push eax
call fcn.00539e20
add esp, 0x6c
jmp 0x5395d6
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edx
push ebx
push esi
push ecx
push edx
push edi
mov esi, edx
call fcn.00539bf0
add esp, 0x14
mov dword [esp + 0x18], esi
lea eax, [esp + 0x64]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 8]
lea esi, [ebx + ecx*4]
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 4]
push dword [esp + 0x70]
push eax
push ecx
call fcn.00539bf0
mov edx, esi
add esp, 0x14
lea eax, [ebp*2]
add eax, ebp
lea esi, [ebx + eax*4]
mov ebp, edx
mov dword [esp], esi
jmp 0x539721
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [ebx]
movsd qword [edi], xmm0
add ebx, 0xc
mov edx, esi
mov esi, dword [esp]
add edi, 0xc
cmp ebx, edx
je 0x5397a4
cmp ebp, esi
je 0x539770
mov esi, edx
sub esp, 0x18
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], eax
movsd xmm0, qword [ebx]
movsd qword [esp + 0xc], xmm0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
movsd xmm0, qword [ebp]
movsd qword [esp], xmm0
mov ecx, dword [esp + 0x80]
call fcn.005397e0
test al, al
je 0x539700
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
movsd xmm0, qword [ebp]
movsd qword [edi], xmm0
add ebp, 0xc
jmp 0x539711
cmp ebx, edx
je 0x5395d3
xor eax, eax
nop word [eax + eax]
mov ecx, dword [ebx + eax + 8]
mov dword [edi + eax + 8], ecx
movsd xmm0, qword [ebx + eax]
movsd qword [edi + eax], xmm0
lea ecx, [ebx + eax]
add ecx, 0xc
add eax, 0xc
cmp ecx, edx
jne 0x539780
jmp 0x5395d3
cmp ebp, esi
je 0x5395d3
xor eax, eax
nop
mov ecx, dword [ebp + eax + 8]
mov dword [edi + eax + 8], ecx
movsd xmm0, qword [ebp + eax]
movsd qword [edi + eax], xmm0
lea ecx, [eax + ebp]
add ecx, 0xc
add eax, 0xc
cmp ecx, esi
jne 0x5397b0
jmp 0x5395d3