Function at 0x4d760
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [ecx + 4]
test ebp, ebp
push edi
mov edi, edx
je 0x4db1f
mov dl, byte [ebp]
cmp dl, 1
jle 0x4da04
mov dword [esi + eax*4], 0xca304
mov dword [esi + eax*4 + 4], 1
add eax, 1
mov dword [esi + eax*4 + 4], 0
add eax, 1
mov dword [esi + eax*4 + 4], 2
mov dl, byte [ebp + 1]
mov edi, dword [ecx]
mov cl, byte [ecx + 1]
add eax, 1
add eax, 1
sub edi, edx
mov dl, byte [ebp + 2]
and edi, 7
sub ecx, edx
and ecx, 7
mov edx, ecx
mov cl, byte [ebp]
cmp cl, 6
jne 0x4d8e3
mov ecx, edi
neg ecx
lea ebx, [ecx + 1]
and ebx, 7
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x10], ebx
lea ebx, [ecx + 2]
and ebx, 7
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x14], ebx
lea ebx, [ecx + 3]
and ebx, 7
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x18], ebx
lea ebx, [ecx - 4]
and ebx, 7
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x20], ebx
lea ebx, [ecx - 3]
and ebx, 7
add ebx, ebx
add ebx, ebx
mov edi, ecx
mov dword [esp + 0x24], ebx
lea ebx, [ecx - 2]
add ecx, 0xffffffff
and edi, 7
and ebx, 7
and ecx, 7
add edi, edi
add ebx, ebx
add ecx, ecx
mov dword [esi + eax*4], 0x100a700
add ecx, ecx
add eax, 1
add edi, edi
add ebx, ebx
neg edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0xc], 8
and edx, 7
shl edx, 5
lea ecx, [edx + ebp + 0xc]
mov edx, dword [edi + ecx]
mov dword [esi + eax*4], edx
mov edx, dword [esp + 0x10]
mov edx, dword [edx + ecx]
mov dword [esi + eax*4 + 4], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ecx]
add eax, 1
mov dword [esi + eax*4 + 4], edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + ecx]
add eax, 1
mov dword [esi + eax*4 + 4], edx
mov edx, dword [esp + 0x20]
mov edx, dword [edx + ecx]
add eax, 1
mov dword [esi + eax*4 + 4], edx
mov edx, dword [esp + 0x24]
mov edx, dword [edx + ecx]
add eax, 1
mov dword [esi + eax*4 + 4], edx
mov edx, dword [ebx + ecx]
add eax, 1
mov dword [esi + eax*4 + 4], edx
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + ecx]
mov edx, dword [esp + 0x40]
add eax, 1
add eax, 1
mov dword [esi + eax*4], ecx
add edx, 1
add eax, 1
sub dword [esp + 0xc], 1
mov dword [esp + 0x40], edx
jne 0x4d854
pop edi
pop ebp
pop ebx
add esp, 0x30
ret 4
cmp cl, 4
jne 0x4d96b
mov ecx, edi
mov dword [esi + eax*4], 0x80a500
neg ecx
add eax, 1
neg edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 8
jmp 0x4d912
mov ecx, dword [esp + 0x28]
and edx, 7
shl edx, 4
lea edi, [edx + ebp + 0xc]
mov edx, 4
mov ebx, ecx
and ebx, 7
movzx ebx, word [edi + ebx*2]
mov word [esp + 0x40], bx
lea ebx, [ecx + 1]
and ebx, 7
movzx ebx, word [edi + ebx*2]
mov word [esp + 0x42], bx
mov ebx, dword [esp + 0x40]
mov dword [esi + eax*4], ebx
add eax, 1
add ecx, 2
sub edx, 1
jne 0x4d921
mov edx, dword [esp + 0xc]
add edx, 1
sub dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
jne 0x4d90e
pop edi
pop ebp
pop ebx
add esp, 0x30
ret 4
mov ecx, 2
mov dword [esi + eax*4], 0x40a400
sub ecx, edi
add eax, 1
neg edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 8
jmp 0x4d994
mov ecx, dword [esp + 0x28]
and edx, 7
lea edi, [ebp + edx*8 + 0xc]
mov edx, 2
lea ebx, [ecx - 2]
and ebx, 7
movzx ebx, byte [ebx + edi]
mov byte [esp + 0x40], bl
lea ebx, [ecx - 1]
and ebx, 7
movzx ebx, byte [ebx + edi]
mov byte [esp + 0x41], bl
mov ebx, ecx
and ebx, 7
movzx ebx, byte [ebx + edi]
mov byte [esp + 0x42], bl
lea ebx, [ecx + 1]
and ebx, 7
movzx ebx, byte [ebx + edi]
mov byte [esp + 0x43], bl
mov ebx, dword [esp + 0x40]
mov dword [esi + eax*4], ebx
add eax, 1
add ecx, 4
sub edx, 1
jne 0x4d9a0
mov edx, dword [esp + 0x10]
add edx, 1
sub dword [esp + 0xc], 1
mov dword [esp + 0x10], edx
jne 0x4d990
pop edi
pop ebp
pop ebx
add esp, 0x30
ret 4
jne 0x4db1f
mov edi, dword [edi + 0xd78]
mov edx, dword [ebp + 4]
mov bl, byte [ebp + 2]
or edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 8]
or edx, edi
mov edi, dword [ecx]
mov dword [esp + 0x1c], edx
mov dl, byte [ebp + 1]
sub edi, edx
mov dl, byte [ecx + 1]
and edi, 7
sub edx, ebx
and edx, 7
test edi, edi
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
je 0x4da95
mov ebx, dword [edi*4 + 0x3fa098]
mov ecx, edi
mov dword [esp + 0x24], edx
shr edx, cl
mov dword [esp + 0x28], ebx
neg edi
and edi, 7
and edx, ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x20], ebx
shr ebx, cl
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], edi
and ebx, ecx
not ecx
mov dword [esp + 0x10], ecx
mov ecx, edi
mov edi, dword [esp + 0x24]
shl edi, cl
and edi, dword [esp + 0x10]
or edx, edi
mov edi, dword [esp + 0x20]
shl edi, cl
mov ecx, dword [esp + 0x40]
and edi, dword [esp + 0x10]
or ebx, edi
jmp 0x4da98
mov ebx, dword [ebp + 0x10]
cmp dword [esp + 0xc], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ebx
je 0x4dafe
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x34]
sub edi, dword [esp + 0xc]
movzx edx, byte [edi]
mov byte [esp + 0x2c], dl
movzx edx, byte [edi + 1]
mov byte [esp + 0x2d], dl
movzx edx, byte [edi + 2]
mov byte [esp + 0x2e], dl
movzx edx, byte [edi + 3]
mov byte [esp + 0x2f], dl
movzx edx, byte [edi + 4]
mov byte [esp + 0x30], dl
movzx edx, byte [edi + 5]
mov byte [esp + 0x31], dl
movzx edx, byte [edi + 6]
mov byte [esp + 0x32], dl
movzx edx, byte [edi + 7]
mov byte [esp + 0x33], dl
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov cl, byte [ecx]
mov edi, dword [esp + 0x1c]
mov byte [ebp + 1], cl
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx]
shr ecx, 8
mov byte [ebp + 2], cl
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], ebx
mov ebp, dword [esp + 0x18]
jmp 0x4db2f
mov edi, dword [edi + 0xd78]
or edi, dword [ecx]
xor ebp, ebp
or edx, 0xffffffff
or ebx, 0xffffffff
mov dword [esi + eax*4], 0x1ca304
mov dword [esi + eax*4 + 4], 1
add eax, 1
mov dword [esi + eax*4 + 4], 0
add eax, 1
mov dword [esi + eax*4 + 4], 1
add eax, 1
mov dword [esi + eax*4 + 4], ebp
add eax, 1
add eax, 1
mov dword [esi + eax*4], edi
add eax, 1
mov dword [esi + eax*4], edx
pop edi
add eax, 1
mov dword [esi + eax*4], ebx
pop ebp
add eax, 1
pop ebx
add esp, 0x30
ret 4