Function at 0x51a8d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov esi, ecx
movzx eax, byte [ecx]
mov ebx, dword [ecx]
mov edx, eax
shr edx, 1
mov ecx, ebx
and ecx, 0xfffffffe
dec ecx
test al, 1
mov eax, 0xa
cmovne eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
cmovne edx, eax
mov dword [esp], edx
mov dword [esp + 0x40], 0x6eff40
mov dword [esp + 0x44], 0x9bbb68
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], esp
mov dword [esp + 0x4c], 0x51ac49
mov edi, dword [ebp + 8]
mov dword [esp + 8], esi
lea eax, [esp + 0x28]
push eax
call fcn.006f0ec0
add esp, 4
mov eax, dword [ebp + 0xc]
sub eax, edi
je 0x51ac1d
mov dword [esp + 0xc], eax
inc esi
mov eax, ebx
shr eax, 1
and eax, 0x7f
and bl, 1
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 4]
cmove edx, eax
mov dword [esp + 4], edx
mov dword [esp + 0x20], ecx
mov eax, ecx
cmove eax, esi
cmp eax, edi
ja 0x51a9bc
add eax, dword [esp + 4]
cmp eax, edi
jbe 0x51a9bc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0xfffffff0
jae 0x51ac38
cmp ecx, 0xa
ja 0x51ab9f
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea esi, [esp + 0x11]
jmp 0x51abcd
mov dword [esp + 4], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp]
sub eax, ecx
mov edx, dword [esp + 0xc]
cmp eax, edx
mov esi, dword [esp + 0x20]
jae 0x51aa11
lea eax, [ecx + edx]
mov esi, dword [esp + 0x24]
sub eax, esi
mov dword [esp + 0x2c], 0xffffffff
mov ecx, dword [esp + 8]
push 0
push 0
push dword [esp + 8]
push dword [esp + 0xc]
push eax
push esi
mov esi, edx
call fcn.00520380
mov ecx, dword [esp]
mov edx, esi
mov eax, dword [esp + 8]
movzx ebx, byte [eax]
mov esi, dword [eax + 8]
and bl, 1
test bl, bl
cmove esi, dword [esp + 4]
lea eax, [esi + ecx]
cmp edx, 0x20
jb 0x51ab09
add ecx, esi
sub ecx, edi
cmp ecx, 0x20
jb 0x51ab09
mov dword [esp + 0x20], esi
lea ecx, [edx - 0x20]
mov ebx, ecx
shr ebx, 5
inc ebx
mov edx, ebx
and edx, 3
xor esi, esi
cmp ecx, 0x60
jb 0x51aab6
and ebx, 0xfffffffc
mov ecx, dword [esp]
mov esi, dword [esp + 0x20]
add ecx, esi
add ecx, 0x70
xor esi, esi
nop dword [eax + eax]
movups xmm0, xmmword [edi + esi]
movups xmm1, xmmword [edi + esi + 0x10]
movups xmmword [ecx + esi - 0x70], xmm0
movups xmmword [ecx + esi - 0x60], xmm1
movups xmm0, xmmword [edi + esi + 0x20]
movups xmm1, xmmword [edi + esi + 0x30]
movups xmmword [ecx + esi - 0x50], xmm0
movups xmmword [ecx + esi - 0x40], xmm1
movups xmm0, xmmword [edi + esi + 0x40]
movups xmm1, xmmword [edi + esi + 0x50]
movups xmmword [ecx + esi - 0x30], xmm0
movups xmmword [ecx + esi - 0x20], xmm1
movups xmm0, xmmword [edi + esi + 0x60]
movups xmm1, xmmword [edi + esi + 0x70]
movups xmmword [ecx + esi - 0x10], xmm0
movups xmmword [ecx + esi], xmm1
sub esi, 0xffffff80
add ebx, 0xfffffffc
jne 0x51aa60
mov ecx, dword [esp + 0xc]
and ecx, 0xffffffe0
mov dword [esp + 4], ecx
test edx, edx
je 0x51aaf9
lea ecx, [esi + edi]
add ecx, 0x10
add esi, dword [esp]
mov ebx, dword [esp + 0x20]
add esi, ebx
add esi, 0x10
shl edx, 5
xor ebx, ebx
nop dword [eax]
movups xmm0, xmmword [ecx + ebx - 0x10]
movups xmm1, xmmword [ecx + ebx]
movups xmmword [esi + ebx - 0x10], xmm0
movups xmmword [esi + ebx], xmm1
add ebx, 0x20
cmp edx, ebx
jne 0x51aae0
mov ecx, dword [esp + 4]
add eax, ecx
mov edx, dword [esp + 0xc]
cmp edx, ecx
je 0x51ab80
add edi, ecx
mov esi, dword [ebp + 0xc]
mov edx, esi
sub edx, edi
mov ecx, edi
not ecx
add ecx, esi
and edx, 7
je 0x51ab2a
nop dword [eax + eax]
movzx ebx, byte [edi]
mov byte [eax], bl
inc eax
inc edi
dec edx
jne 0x51ab20
cmp ecx, 7
mov edx, dword [esp + 0xc]
jb 0x51ab80
nop word cs:[eax + eax]
movzx ecx, byte [edi]
mov byte [eax], cl
movzx ecx, byte [edi + 1]
mov byte [eax + 1], cl
movzx ecx, byte [edi + 2]
mov byte [eax + 2], cl
movzx ecx, byte [edi + 3]
mov byte [eax + 3], cl
movzx ecx, byte [edi + 4]
mov byte [eax + 4], cl
movzx ecx, byte [edi + 5]
mov byte [eax + 5], cl
movzx ecx, byte [edi + 6]
mov byte [eax + 6], cl
movzx ecx, byte [edi + 7]
mov byte [eax + 7], cl
add eax, 8
add edi, 8
cmp edi, esi
jne 0x51ab40
mov byte [eax], 0
mov eax, dword [esp]
add eax, edx
mov esi, dword [esp + 8]
test byte [esi], 1
jne 0x51ab9a
add al, al
mov byte [esi], al
jmp 0x51ac1d
mov dword [esi + 4], eax
jmp 0x51ac1d
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
mov dword [esp + 0x2c], 0xffffffff
push eax
mov esi, ecx
call fcn.0051c3d0
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
add ebx, 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
push ecx
push edi
push esi
mov edi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
movzx eax, byte [esp + 0x10]
test al, 1
je 0x51abf1
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x51abf7
shr eax, 1
lea edx, [esp + 0x11]
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], 1
push eax
push edx
call fcn.00520110
test byte [esp + 0x10], 1
je 0x51ac1d
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.006f0f20
add esp, 4
mov eax, dword [esp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0051f6b0
mov eax, dword [esp + 0x2c]
cmp eax, 1
jb switch.0x0051ac56
ud2
jmp dword [eax*4 + 0x51ac84]
mov esi, dword [esp + 0x30]
test byte [esp + 0x10], 1
je 0x51ac74
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
push esi
call fcn.006f11c0
nop
pop ebp
lodsb al, byte [esi]
push ecx
add ah, cl
int3