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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
test eax, eax
je 0x5067b7
mov edi, edx
mov dword [esp + 4], ecx
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push esi
push dword [edx + 0x3c]
call fcn.00506bc0
test byte [esp + 0x20], 1
jne 0x5067cc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x506960
mov dword [esp + 0x28], eax
mov ebx, dword [edi + 0x3c]
lea ecx, [esp + 8]
push ebx
call fcn.00500940
test byte [esp + 0x10], 1
jne 0x506979
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
sub esp, 0x10
movsd xmm0, qword [esp + 0x50]
movsd qword [esp + 8], xmm0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
lea ecx, [esp + 0x3c]
call fcn.00500f60
test byte [esp + 0x10], 1
je 0x506745
mov ecx, dword [esp + 8]
mov dword [esp + 8], 0
test ecx, ecx
je 0x506745
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x34], 1
jne 0x506991
lea ecx, [esp + 0x68]
push 0
mov ebx, dword [ebp + 0xc]
push ebx
push dword [edi + 0x3c]
call fcn.00506bc0
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x68]
sar eax, 3
mov edx, dword [edi + 0x22c]
mov ecx, dword [edi + 0x238]
test ecx, ecx
je 0x5069f8
mov esi, ecx
mov ecx, ebx
shr ecx, 4
shr ebx, 9
xor ebx, ecx
mov dword [esp + 0x24], esi
lea ecx, [esi - 1]
mov dword [esp + 0x5c], ecx
and ebx, ecx
lea ecx, [ebx + ebx*2]
mov esi, dword [edx + ecx*4]
cmp esi, dword [ebp + 0xc]
jne 0x5069ac
lea ecx, [edx + ecx*4]
mov esi, edx
mov edx, dword [esp + 0x24]
jmp 0x506a04
and byte [ecx + 0x10], 0xfe
mov dword [ecx], 0
mov word [ecx + 4], 0
jmp 0x506bad
mov eax, dword [ebx + 4]
mov dword [esp + 0xac], str.unable_to_read_an_entry_with_index
mov dword [esp + 0xb4], eax
mov word [esp + 0xbc], 0x903
lea eax, [esp + 0xac]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], str._from
mov word [esp + 0xd0], 0x302
mov edi, dword [edi + 0x3c]
lea ecx, [esp + 0x40]
push edi
call fcn.00500940
mov ebx, esi
sub ebx, dword [esp + 0x40]
mov eax, dword [edi]
movzx eax, word [eax + 0x12]
rol ax, 8
sar ebx, 6
movzx eax, ax
mov ecx, dword [esi + 4]
bswap ecx
push ecx
push eax
call fcn.0054a5d0
add esp, 8
mov word [esp + 0x3c], 0x305
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], str._section_with_index
lea edi, [esp + 0x2c]
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov word [esp + 0x18], 0x902
lea esi, [esp + 8]
lea ebx, [esp + 0x7c]
mov ecx, ebx
push esi
call fcn.0054a73e
lea eax, [esp + 0xc0]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ebx
mov word [esp + 0x50], 0x402
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0x551440
mov word [esp + 0x3c], 0x302
xor eax, eax
test byte [esp + 0x20], 1
je 0x5068bc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
lea ebx, [esp + 0x70]
push eax
push ebx
call fcn.0054a6b4
add esp, 8
mov dword [esp + 8], edi
mov dword [esp + 0x10], ebx
mov word [esp + 0x18], 0x402
push 0x1c
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
call fcn.0054a58e
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], 3
sub esp, 0xc
movsd xmm0, qword [esp + 0x6c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.0054a3a8
mov eax, dword [esp + 4]
or byte [eax + 0x10], 1
mov dword [eax], edi
test byte [esp + 0x70], 1
je 0x506934
push dword [esp + 0x78]
call sub.libc.dll_operator_delete_void_
add esp, 4
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x506941
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x7c], 1
je 0x506b91
push dword [esp + 0x84]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x506b91
mov eax, dword [esp + 4]
and byte [eax + 0x10], 0xfe
mov dword [eax], 0
mov word [eax + 4], 0
jmp 0x506b91
mov eax, dword [esp + 8]
or byte [esp + 0x34], 1
mov dword [esp + 0x2c], eax
test byte [esp + 0x34], 1
je 0x506750
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 4]
or byte [ecx + 0x10], 1
mov dword [ecx], eax
jmp 0x506b7c
mov dword [esp], esi
mov dword [esp + 0x54], 1
mov esi, edx
mov edx, dword [esp + 0x24]
cmp dword [esp], 0xfffff000
mov ecx, edx
mov edx, esi
je 0x5069f8
add ebx, dword [esp + 0x54]
inc dword [esp + 0x54]
and ebx, dword [esp + 0x5c]
lea esi, [ebx + ebx*2]
mov dword [esp], esi
mov ecx, dword [esp]
lea ecx, [edx + ecx*4]
mov esi, dword [esp]
mov esi, dword [edx + esi*4]
mov dword [esp], esi
cmp esi, dword [ebp + 0xc]
mov esi, edx
mov edx, dword [esp + 0x24]
je 0x506a04
jmp 0x5069bd
mov ebx, ecx
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*4]
mov esi, edx
mov edx, ebx
imul eax, eax, 0xaaaaaaab
lea edx, [edx + edx*2]
lea edx, [esi + edx*4]
cmp ecx, edx
je 0x506a1c
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x506a20
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], 0
mov byte [esp + 0x98], 1
mov dword [esp + 0xa0], 0
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
cmp dword [esi + 4], 0xb000000
sete cl
sub esp, 0x38
movups xmm0, xmmword [esp + 0xc0]
movups xmm1, xmmword [esp + 0xd0]
movups xmmword [esp + 0x18], xmm1
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x78]
mov edx, edi
call fcn.00506d20
add esp, 0x38
movzx ebx, byte [esp + 0x40]
mov eax, ebx
and al, 1
je 0x506ac2
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x506ac8
shr ebx, 1
lea edx, [esp + 0x41]
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
lea esi, [esp + 0xc]
test edx, edx
je 0x506af8
cmp ebx, 0xfffffff8
jae 0x506bb5
cmp ebx, 0xb
jae 0x506b08
mov eax, ebx
add al, bl
mov byte [esp + 0xc], al
lea edi, [esp + 0xd]
test ebx, ebx
jne 0x506b32
jmp 0x506b3d
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x506b4c
mov edi, ebx
or edi, 7
lea eax, [edi + 1]
push eax
mov esi, edx
call sub.libc.dll_operator_new_unsigned_int_
mov edx, esi
lea esi, [esp + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
add edi, 2
mov dword [esp + 0xc], edi
mov edi, eax
mov dword [esp + 0x10], ebx
push ebx
push edx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov byte [edi + ebx], 0
mov ecx, dword [esp + 8]
movzx eax, byte [esp + 0x40]
and al, 1
mov edx, dword [esp + 4]
and byte [edx + 0x10], 0xfe
mov dword [edx], ecx
movsd xmm0, qword [esi]
movsd qword [edx + 4], xmm0
mov ecx, dword [esi + 8]
mov dword [edx + 0xc], ecx
test al, al
je 0x506b75
push dword [esp + 0x48]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x34], 1
je 0x506b91
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test ecx, ecx
je 0x506b91
mov eax, dword [ecx]
call dword [eax + 4]
test byte [esp + 0x20], 1
je 0x506bad
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test ecx, ecx
je 0x506bad
mov eax, dword [ecx]
call dword [eax + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00407760
int3