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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov esi, ecx
movups xmm0, xmmword [ebp + 0x10]
movups xmm1, xmmword [ebp + 0x20]
movaps xmmword [esp + 0xc0], xmm1
movaps xmmword [esp + 0xb0], xmm0
cmp byte [ebp + 0x38], 0
je 0x506e04
mov edi, edx
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x8c]
movsd qword [esp + 4], xmm0
mov dword [esp], edx
lea ecx, [esp + 0x10]
call fcn.00507b30
movzx ebx, byte [esp + 0xc]
test bl, 1
jne 0x506e13
mov dword [esp], edi
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [0x55f2d4]
cmp byte [eax], 0
je 0x507005
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], edi
sub esp, 0xc
movsd xmm0, qword [esp + 0x78]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.0054a6ae
add esp, 0xc
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x18], xmm0
mov edi, dword [esp]
test byte [esp + 0xc], 1
jne 0x506e4d
jmp 0x506e62
mov byte [esi], 6
mov dword [esi + 1], 0x3e3f3c
jmp 0x507402
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.00539410
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x506e3c
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esi], 6
mov dword [esi + 1], 0x3e3f3c
test byte [esp + 0xc], 1
je 0x506e62
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x506e62
mov eax, dword [ecx]
call dword [eax + 4]
movzx edx, byte [esp + 0x18]
test bl, 1
jne 0x5073f1
test dl, 1
je 0x506e83
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x506f62
jmp 0x506e90
movzx ecx, dl
shr ecx, 1
test ecx, ecx
jne 0x506f62
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 4]
and al, 0xf
cmp al, 3
jne 0x506f62
mov ebx, edx
mov eax, dword [ebp + 0xc]
sub esp, 0x24
movaps xmm0, xmmword [esp + 0xd4]
movaps xmm1, xmmword [esp + 0xe4]
movups xmmword [esp + 0x14], xmm1
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
lea ecx, [esp + 0x4c]
mov edx, dword [ebp + 8]
call fcn.00507c70
add esp, 0x24
test byte [esp + 0x2c], 1
jne 0x5071af
lea ecx, [esp + 4]
push dword [esp + 0x28]
push dword [edi + 0x3c]
call fcn.005054a0
test byte [esp + 8], 1
jne 0x5072f2
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 4]
mov dword [esp + 0x6c], 0x43a590
mov dword [esp + 0x30], 0x43abc0
lea edx, [esp + 0x6c]
mov dword [esp + 0x34], edx
sub esp, 0x10
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 8], xmm0
mov dword [esp + 4], ecx
mov dword [esp], eax
lea ecx, [esp + 0x60]
call fcn.00504d70
test byte [esp + 8], 1
je 0x5072ff
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x5072ff
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x5072ff
cmp byte [ebp + 0x3c], 0
je 0x506fef
mov dword [esp + 0x24], ecx
mov ebx, dword [edi + 0x264]
test ebx, ebx
je 0x507038
mov dword [esp + 0x4c], edx
mov eax, dword [ebp + 8]
sub eax, dword [edi + 0x148]
mov ecx, 0xaaaaaaab
mul ecx
shr edx, 4
lea ecx, [esp + 0x30]
push edx
push ebx
push dword [edi + 0x3c]
call fcn.00508200
test byte [esp + 0x34], 1
mov eax, dword [esp + 0x30]
jne 0x50706d
mov dword [esp], edi
movzx edi, word [eax]
rol di, 8
cmp di, 1
mov ebx, dword [esp + 0x24]
ja 0x5071e7
and byte [esp + 0xc], 0xfe
mov byte [esp + 0x88], 0
mov dword [esp + 4], 0x551965
mov dword [esp + 8], 0
mov edi, dword [esp]
jmp 0x50707a
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esi], xmm0
jmp 0x507402
test edi, edi
je 0x507057
cmp ecx, 0xfffffff8
jae 0x507443
cmp ecx, 0xb
mov dword [esp + 0x24], ecx
jae 0x507150
mov eax, ecx
add al, cl
mov byte [esp + 0x30], al
lea eax, [esp + 0x31]
test ecx, ecx
jne 0x50717c
jmp 0x50718f
and byte [esp + 0xc], 0xfe
mov byte [esp + 0x88], 0
mov dword [esp + 4], 0x551965
mov dword [esp + 8], 0
jmp 0x507081
xorps xmm0, xmm0
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
jmp 0x506de4
or byte [esp + 0xc], 1
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x24]
test byte [esp + 0xc], 1
jne 0x5070ec
cmp dword [esp + 8], 0
je 0x5070b8
cmp byte [esp + 0x88], 0
mov eax, 0x557520
mov edx, 0x55751d
cmove edx, eax
lea edi, [esp + 0x18]
mov ecx, edi
push edx
call fcn.0054ab40
mov ecx, edi
push dword [esp + 8]
push dword [esp + 8]
call fcn.0054ab46
mov eax, dword [esp + 0x20]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x18]
movsd qword [esi], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
xor edx, edx
test byte [esp + 0xc], 1
jne 0x5072cf
jmp 0x5073f1
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
call fcn.00539410
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x507115
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0xa]
cmp eax, 0xfffffff8
jae 0x50744c
cmp eax, 0xb
jae 0x50725b
add al, al
lea edi, [esi + 1]
xorps xmm0, xmm0
movsd qword [esi], xmm0
mov dword [esi + 8], 0
mov byte [esi], al
test ebx, ebx
mov edx, dword [esp + 0x4c]
jne 0x50728b
jmp 0x5072a9
mov dword [esp + 0x48], esi
mov esi, ecx
or esi, 7
lea eax, [esi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x38], eax
add esi, 2
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
push ecx
push edi
push eax
mov edi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, edi
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov byte [eax + ecx], 0
test byte [esp + 0x18], 1
je 0x506de4
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x506de4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.00539410
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x5071d8
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esi], 6
mov dword [esi + 1], 0x3e3f3c
jmp 0x5073d1
lea ecx, [esp + 0x6c]
mov edx, dword [esp]
call fcn.00508350
test byte [esp + 0x70], 1
jne 0x50740a
movzx eax, di
mov ecx, dword [esp]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [esp + 0x6c]
mov edi, dword [ebp + 8]
cmp word [edi + 6], 0
sete byte [esp + 0x9c]
mov byte [esp + 0x9d], 1
sub esp, 0x14
mov edi, esi
movzx esi, word [esp + 0xb0]
mov word [esp + 0x10], si
mov esi, edi
mov dword [esp + 0xc], edx
lea edx, [esp + 0x9c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
lea ecx, [esp + 0x18]
call fcn.00508450
jmp 0x507417
mov dword [esp + 0x48], esi
mov esi, eax
or esi, 7
mov dword [esp], eax
lea eax, [esi + 1]
push eax
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov edi, eax
add esi, 2
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 8], edi
mov ecx, dword [esp]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x4c]
test dl, 1
je 0x507296
mov eax, dword [esp + 0x20]
jmp 0x50729a
lea eax, [esp + 0x19]
push ebx
push eax
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov word [edi + ebx + 8], 0x3e74
mov dword [edi + ebx + 4], 0x70757272
mov dword [edi + ebx], 0x6f633c40
mov byte [edi + ebx + 0xa], 0
test byte [esp + 0xc], 1
je 0x5073f1
mov ecx, dword [esp + 4]
mov dword [esp + 4], 0
test ecx, ecx
je 0x5073f1
mov eax, dword [ecx]
call dword [eax + 4]
movzx edx, byte [esp + 0x18]
jmp 0x5073f1
mov eax, dword [esp + 4]
or byte [esp + 0x58], 1
mov dword [esp + 0x50], eax
test byte [esp + 0x58], 1
jne 0x507317
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.0043d4f0
jmp 0x5073b3
mov ecx, edi
mov edi, esi
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
call fcn.00539410
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x507342
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x6c], str._section
mov word [esp + 0x7c], 0x103
mov eax, dword [esp + 0x28]
mov word [esp + 0xac], 0x109
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x6c]
lea esi, [esp + 0x30]
push eax
push ecx
push esi
call fcn.00439ff0
add esp, 0xc
mov dword [esp + 0x88], 0x55751b
mov word [esp + 0x98], 0x103
lea eax, [esp + 0x88]
push eax
push esi
lea esi, [esp + 0xc]
push esi
call fcn.00439ff0
add esp, 0xc
mov ecx, edi
push esi
call fcn.0054a73e
test byte [esp + 0x58], 1
mov edx, ebx
je 0x5073d3
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], 0
test ecx, ecx
je 0x5073d3
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
test byte [esp + 0x2c], 1
je 0x5073f1
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], 0
test ecx, ecx
je 0x5073f1
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
test dl, 1
je 0x507402
push dword [esp + 0x20]
call sub.libc.dll_operator_delete_void_
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x6c]
or byte [esp + 0xc], 1
mov dword [esp + 4], eax
test byte [esp + 0x34], 1
mov edi, dword [esp]
je 0x50707a
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x50707a
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x50707a
lea ecx, [esp + 0x30]
call fcn.00407760
mov ecx, esi
call fcn.00407760
int3