Function at 0x4ba580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x38]
test esi, esi
jle 0x4ba870
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 0x4ba5b5
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x50]
lea eax, [eax + eax*2]
lea edx, [ecx + ecx]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov ebx, eax
sub edx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
jmp 0x4ba5f0
mov edx, dword [esp + 0x1c]
lea ecx, [ecx]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
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 0x4ba80d
lea ecx, [edi + 4]
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 - 3], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [edi], dl
mov byte [ecx - 2], 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 + 3], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 2], dl
mov byte [ecx + 4], 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 + 7], bl
shl dl, 4
or dl, al
mov byte [ecx + 6], dl
mov al, byte [esp + 0x44]
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 5], 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 + 9], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 8], dl
mov byte [ecx + 0xa], 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 + 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 + 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 + 0xf], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0xe], dl
mov byte [ecx + 0x10], 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 + 0x12], dl
mov dl, al
shl dl, 4
or dl, al
mov byte [ecx + 0x13], bl
mov byte [ecx + 0x11], dl
add edi, 0x18
add ecx, 0x18
add esi, 0x10
dec ebp
jne 0x4ba625
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4ba855
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, 3
add esi, 2
dec ebp
jne 0x4ba817
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 0x4ba5e9
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x1c
ret