Function at 0x4ba280
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x4ba571
mov ecx, dword [esp + 0x34]
mov eax, ecx
cdq
and edx, 7
push ebx
push ebp
add eax, edx
mov ebp, eax
sar ebp, 3
and ecx, 0x80000007
push edi
mov dword [esp + 0x10], ebp
jns 0x4ba2b5
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x28], ecx
lea ecx, [eax*4]
lea eax, [edx + edx]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x54]
mov ebx, eax
sub edx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
jmp 0x4ba2f1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov eax, dword [ecx]
add edx, ebx
push edx
call dword [eax + 4]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [esp + 0x20]
push ebx
add edi, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov esi, eax
add esi, ecx
test ebp, ebp
jle 0x4ba50e
lea ecx, [edi + 5]
mov al, byte [esi]
mov dx, word [esi]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx - 4], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [edi], dl
mov byte [ecx - 3], bl
mov al, byte [esi + 2]
mov dx, word [esi + 2]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx - 1], dl
mov byte [ecx + 1], bl
mov al, byte [esi + 4]
mov dx, word [esi + 4]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx + 4], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 3], dl
mov byte [ecx + 5], bl
mov al, byte [esi + 6]
mov dx, word [esi + 6]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
mov dl, dh
and dl, 0xf
mov bl, dl
shr al, 4
shl bl, 4
and al, 0xf
or bl, dl
mov dl, al
mov byte [ecx + 9], bl
shl dl, 4
or dl, al
mov byte [ecx + 8], dl
mov al, byte [esp + 0x44]
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 7], dl
mov al, byte [esi + 8]
mov dx, word [esi + 8]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx + 0xc], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0xb], dl
mov byte [ecx + 0xd], bl
mov al, byte [esi + 0xa]
mov dx, word [esi + 0xa]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx + 0x10], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0xf], dl
mov byte [ecx + 0x11], bl
mov al, byte [esi + 0xc]
mov dx, word [esi + 0xc]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
mov dl, dh
and dl, 0xf
mov bl, dl
and al, 0xf
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx + 0x14], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0x13], dl
mov byte [ecx + 0x15], bl
mov al, byte [esi + 0xe]
mov dx, word [esi + 0xe]
and al, 0xf
mov byte [esp + 0x44], al
mov al, dl
shr al, 4
and al, 0xf
mov dl, dh
and dl, 0xf
mov bl, dl
shl bl, 4
or bl, dl
mov dl, al
shl dl, 4
or dl, al
mov al, byte [esp + 0x44]
mov byte [ecx + 0x18], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0x19], bl
mov byte [ecx + 0x17], dl
add edi, 0x20
add ecx, 0x20
add esi, 0x10
dec ebp
jne 0x4ba326
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4ba556
mov ebp, eax
mov dx, word [esi]
mov cl, byte [esi]
mov al, dl
mov dl, dh
and dl, 0xf
shr al, 4
mov bl, dl
and al, 0xf
shl bl, 4
or bl, dl
mov dl, al
and cl, 0xf
shl dl, 4
or dl, al
mov al, cl
shl al, 4
or al, cl
mov byte [edi + 2], bl
mov byte [edi + 1], dl
mov byte [edi], al
add edi, 4
add esi, 2
dec ebp
jne 0x4ba518
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
dec eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
jne 0x4ba2ed
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret