Function at 0x4bc870
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xa8]
push eax
push ecx
mov ecx, dword [esp + 0xbc]
lea eax, [esp + 0x4c]
push edx
mov edx, dword [esp + 0xbc]
push eax
push ecx
push edx
push ebx
push esi
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4bc8c6
pop esi
mov eax, 1
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x60]
push ebp
mov edx, dword [ebx + 8]
push edi
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
sub ecx, edi
mov edi, dword [esi + 8]
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x54]
sub eax, ebp
imul ebp, dword [esp + 0x14]
imul edi, edx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x18], ecx
lea edi, [edi + edx*4]
add edi, dword [ebx + 4]
mov ebx, dword [esp + 0x60]
lea ebp, [ebp + ebx*4]
mov ebx, dword [esi + 4]
add ebp, ebx
mov bl, byte [esp + 0x4c]
test bl, bl
je 0x4bcbca
mov esi, dword [esp + 0x58]
and ecx, 7
sub edx, esi
mov esi, dword [esp + 0x2c]
add edx, ecx
mov ebx, dword [esp + 0x18]
sar ebx, 3
lea edx, [esi + edx*4]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x28], edx
mov edx, ecx
sub edx, esi
mov esi, dword [esp + 0x14]
test eax, eax
lea edx, [esi + edx*4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], edx
jle 0x4bccf1
mov dword [esp + 0x18], eax
test ebx, ebx
jle 0x4bcb49
lea esi, [edi + 0xa]
lea eax, [ebp + 7]
mov dword [esp + 0x14], ebx
mov cl, byte [edi]
mov dx, word [edi]
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
xor ebx, ebx
and cl, 0xfc
mov bl, dh
mov byte [eax - 6], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax - 5], bl
mov byte [ebp], cl
mov byte [eax - 4], 0xff
mov dl, byte [esi - 8]
shl dl, 4
mov byte [eax - 4], dl
mov cl, byte [esi - 6]
mov dx, word [esi - 6]
xor ebx, ebx
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax - 2], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax - 3], cl
mov byte [eax - 1], bl
mov byte [eax], 0xff
mov dl, byte [esi - 4]
xor ebx, ebx
shl dl, 4
mov byte [eax], dl
mov cl, byte [esi - 2]
mov dx, word [esi - 2]
mov byte [eax + 4], 0xff
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax + 2], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 1], cl
mov byte [eax + 3], bl
mov dl, byte [esi]
shl dl, 4
mov byte [eax + 4], dl
mov cl, byte [esi + 2]
mov dx, word [esi + 2]
xor ebx, ebx
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax + 6], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 5], cl
mov byte [eax + 7], bl
mov byte [eax + 8], 0xff
mov dl, byte [esi + 4]
shl dl, 4
mov byte [eax + 8], dl
mov cl, byte [esi + 6]
mov dx, word [esi + 6]
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
xor ebx, ebx
mov bl, dh
mov byte [eax + 0xa], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 9], cl
mov byte [eax + 0xb], bl
mov byte [eax + 0xc], 0xff
mov dl, byte [esi + 8]
xor ebx, ebx
shl dl, 4
mov byte [eax + 0xc], dl
mov cl, byte [esi + 0xa]
mov dx, word [esi + 0xa]
mov byte [eax + 0x10], 0xff
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax + 0xe], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 0xd], cl
mov byte [eax + 0xf], bl
mov dl, byte [esi + 0xc]
shl dl, 4
mov byte [eax + 0x10], dl
mov cl, byte [esi + 0xe]
mov dx, word [esi + 0xe]
xor ebx, ebx
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax + 0x12], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 0x11], cl
mov byte [eax + 0x13], bl
mov byte [eax + 0x14], 0xff
mov dl, byte [esi + 0x10]
xor ebx, ebx
shl dl, 4
mov byte [eax + 0x14], dl
mov cl, byte [esi + 0x12]
mov dx, word [esi + 0x12]
mov byte [eax + 0x18], 0xff
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
and cl, 0xfc
mov bl, dh
mov byte [eax + 0x16], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax + 0x15], cl
mov ecx, dword [esp + 0x14]
mov byte [eax + 0x17], bl
mov dl, byte [esi + 0x14]
add ebp, 0x20
shl dl, 4
mov byte [eax + 0x18], dl
add eax, 0x20
add edi, 0x20
add esi, 0x20
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4bc973
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x4bcba2
mov esi, edi
lea eax, [ebp + 3]
mov dword [esp + 0x14], ecx
mov cl, byte [esi]
mov dx, word [esi]
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
xor ebx, ebx
and cl, 0xfc
mov bl, dh
mov byte [eax - 2], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax - 1], bl
mov byte [eax - 3], cl
mov ecx, dword [esp + 0x14]
mov byte [eax], 0xff
mov dl, byte [esi + 2]
add esi, 4
shl dl, 4
mov byte [eax], dl
add eax, 4
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4bcb56
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add ebp, esi
add edi, edx
dec eax
mov dword [esp + 0x18], eax
jne 0x4bc961
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x84]
lea esi, [edx*4]
mov edx, dword [esp + 0x2c]
imul edx, dword [esp + 0x9c]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x3c], edx
jle 0x4bccf1
add ebp, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
jmp 0x4bcc3f
mov ebx, dword [esp + 0x20]
add ebx, dword [esp + 0x48]
mov dword [esp + 0x20], ebx
js 0x4bcc59
mov eax, dword [esp + 0x2c]
add edi, eax
mov eax, dword [esp + 0x38]
sub ebx, eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], edi
test ecx, ecx
mov dword [esp + 0x1c], eax
jle 0x4bccd1
mov eax, ebp
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
add ecx, edx
mov dword [esp + 0x1c], ecx
js 0x4bcc8a
mov edx, dword [esp + 0x34]
add edi, 4
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov cl, byte [edi]
mov dx, word [edi]
shl cl, 3
mov byte [esp + 0x13], cl
mov ecx, edx
shr ecx, 3
xor ebx, ebx
and cl, 0xfc
mov bl, dh
mov byte [eax - 2], cl
mov cl, byte [esp + 0x13]
and bl, 0xf8
mov byte [eax - 1], bl
mov byte [eax - 3], cl
mov byte [eax], 0xff
mov dl, byte [edi + 2]
shl dl, 4
mov byte [eax], dl
add edi, esi
add eax, 4
dec ebp
jne 0x4bcc6d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
add ebp, ebx
lea edi, [eax + edx]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
jne 0x4bcc3b
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x90
ret