Function at 0x513770
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov edi, edx
mov esi, ecx
mov edx, dword [ebp + 8]
movzx ecx, word [edx + 6]
rol cx, 8
movzx eax, cx
cmp eax, 0xfff1
jg 0x5137b6
test eax, eax
je 0x513859
cmp eax, 0xfff1
jne 0x513877
mov byte [esi], 6
mov dword [esi + 1], 0x534241
jmp 0x513a8d
cmp eax, 0xfff2
je 0x513868
cmp eax, 0xffff
jne 0x513877
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub esp, 0x2c
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esp + 0x1c], xmm1
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.005096f0
add esp, 0x2c
test byte [esp + 4], 1
jne 0x5138a7
mov eax, dword [esp]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 3
mov word [esp + 0x3c], 0
mov byte [esp + 0x3e], 0
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0043e490
add esp, 8
test byte [esp + 4], 1
jne 0x51390b
jmp 0x513a8d
mov byte [esi], 6
mov dword [esi + 1], 0x444e55
jmp 0x513a8d
mov byte [esi], 6
mov dword [esi + 1], 0x4d4f43
jmp 0x513a8d
and ecx, 0xffe0
cmp ecx, 0xff20
je 0x513927
cmp ecx, 0xff00
jne 0x51393d
mov byte [esp + 0x1c], 0xc
mov dword [esp + 0x1d], 0x5b435250
jmp 0x513955
mov eax, dword [esp]
mov dword [esp], 0
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
mov ecx, edi
push eax
call fcn.0053aa50
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x5138ce
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10
call sub.libc.dll_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 8], eax
mov dword [esi], 0x11
mov dword [esi + 4], 0xb
mov dword [eax + 7], 0x5d666666
mov dword [eax + 4], 0x66667830
mov dword [eax], 0x5b565352
mov byte [eax + 0xb], 0
test byte [esp + 4], 1
je 0x513a8d
mov ecx, dword [esp]
mov dword [esp], 0
test ecx, ecx
je 0x513a8d
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x513a8d
mov byte [esp + 0x1c], 0xa
mov dword [esp + 0x1d], 0x305b534f
mov word [esp + 0x21], pe_nt_image_headers32
jmp 0x513961
cmp eax, 0xff00
jb 0x513a4f
mov byte [esp + 0x1c], 0xc
mov dword [esp + 0x1d], 0x5b565352
mov word [esp + 0x21], 0x7830
mov byte [esp + 0x23], 0
mov dword [esp + 0x28], eax
movaps xmm0, xmmword [0x557d00]
movups xmmword [esp + 0x2c], xmm0
mov word [esp + 0x3c], 1
mov byte [esp + 0x3e], 0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0043e490
add esp, 8
movzx eax, byte [esp + 0x10]
test al, 1
je 0x5139a2
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x5139a8
shr eax, 1
lea edx, [esp + 0x11]
lea ecx, [esp + 0x1c]
push eax
push edx
call fcn.00550f3c
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov ecx, esp
push 0x5583c2
call fcn.00550f36
movsd xmm0, qword [eax]
movsd qword [esi], xmm0
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
test byte [esp], 1
jne 0x513a1b
test byte [esp + 0x10], 1
jne 0x513a2e
test byte [esp + 0x1c], 1
jne 0x513a41
jmp 0x513a8d
push dword [esp + 8]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x10], 1
je 0x513a12
push dword [esp + 0x18]
call sub.libc.dll_operator_delete_void_
add esp, 4
test byte [esp + 0x1c], 1
je 0x513a8d
push dword [esp + 0x24]
call sub.libc.dll_operator_delete_void_
add esp, 4
jmp 0x513a8d
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 3
mov word [esp + 0x3c], 0
mov byte [esp + 0x3e], 0
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0043e490
add esp, 8
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret