Function at 0x4d3360
Capabilities:
Enumerate pe sections

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x43c
push ebx
mov ebx, 1
push ebp
mov ebp, dword [esp + 0x44c]
push esi
push edi
test bl, al
je 0x4d33ef
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x1c]
push 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x454]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004cba60
add esp, 0xc
test eax, eax
jne 0x4d33bc
test byte [esp + 0x45c], bl
jne 0x4d33ef
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ebp + 1], edx
mov edx, dword [esp + 0x2c]
lea ecx, [ebp + 0xa]
mov dword [ebp + 5], eax
mov eax, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x1b], ecx
test byte [esp + 0x458], 2
je 0x4d3988
mov esi, dword [esp + 0x450]
xor eax, eax
push eax
lea edx, [esp + 0x50]
push 0x400
push edx
mov ecx, 0x100
lea edi, [esp + 0x58]
push eax
push 0x2a
rep stosd dword es:[edi], eax
push esi
call fcn.004cbc50
add esp, 0x18
test eax, eax
je 0x4d348a
cmp byte [esp + 0x55], 0x1c
jb 0x4d348a
mov al, byte [esp + 0x56]
test bl, al
je 0x4d343e
mov dword [ebp + 0x28], ebx
test al, 2
je 0x4d3445
mov dword [ebp + 0x2c], ebx
test al, 8
je 0x4d344c
mov dword [ebp + 0x40], ebx
test al, 0x10
je 0x4d3453
mov dword [ebp + 0x64], ebx
test al, 0x20
je 0x4d345a
mov dword [ebp + 0x7c], ebx
mov al, byte [esp + 0x57]
test bl, al
je 0x4d3465
mov dword [ebp + 0x30], ebx
test al, 2
je 0x4d346c
mov dword [ebp + 0x34], ebx
test al, 0x10
je 0x4d3473
mov dword [ebp + 0x68], ebx
test al, 0x20
je 0x4d347d
mov dword [ebp + 0x80], ebx
test al, al
je 0x4d3484
mov byte [ebp + 0x20], bl
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x74], eax
lea ecx, [esp + 0x1c]
push 8
push ecx
push 0
push 0
push esi
call fcn.004cca80
add esp, 0x14
test eax, eax
jne 0x4d34bd
test byte [esp + 0x45c], 2
jne 0x4d3988
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edi, dword [esp + 0x1e]
mov edx, dword [esp + 0x1f]
and edi, 0xff
and edx, 0xff
shl edi, 8
or edi, edx
add edi, 4
push edi
push 0x40
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x4d34fb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
mov eax, dword [esp + 0x450]
push edi
push esi
push 0
push 0
push eax
call fcn.004cca80
add esp, 0x14
test eax, eax
jne 0x4d3537
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x45c], 2
jne 0x4d3988
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, 8
cmp edi, edx
mov dword [esp + 0x10], edx
jbe 0x4d3970
add edx, esi
xor eax, eax
xor ecx, ecx
mov ah, byte [edx]
mov cl, byte [edx + 1]
or eax, ecx
cmp eax, 0x2f
ja 0x4d3751
je 0x4d3739
cmp eax, 0x2e
ja case.0x4d3768.66
xor ecx, ecx
mov cl, byte [eax + 0x4d3a40]
jmp dword [ecx*4 + 0x4d3a18]
test byte [edx + 3], 0xfc
jbe case.0x4d3768.66
mov eax, 0xfffffffb
lea esi, [edx + 5]
sub eax, edx
xor ecx, ecx
mov ch, byte [esi - 1]
mov cl, byte [esi]
lea edi, [ecx - 1]
cmp edi, 0x51
ja case.0x4d35ab.20
xor ecx, ecx
mov cl, byte [edi + 0x4d3ac0]
jmp dword [ecx*4 + 0x4d3a70]
mov dword [ebp + 0x24], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x30], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x34], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x40], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0x44], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x4c], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x54], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x5c], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x84], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0xc8], ebx
jmp case.0x4d35ab.20
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0xd0], ebx
jmp case.0x4d35ab.1
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0xd8], ebx
mov byte [ebp + 0x20], bl
mov cl, byte [edx + 3]
add esi, 4
and ecx, 0xfc
lea edi, [eax + esi]
cmp edi, ecx
jb 0x4d3590
jmp case.0x4d3768.66
mov dword [ebp + 0x24], ebx
mov al, byte [edx + 4]
test al, 2
je 0x4d369f
mov dword [ebp + 0x38], ebx
test byte [edx + 4], bl
je case.0x4d3768.66
mov dword [ebp + 0x3c], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0x40], ebx
mov al, byte [edx + 6]
test bl, al
je case.0x4d3768.66
mov dword [ebp + 0x6c], ebx
jmp case.0x4d3768.66
test byte [edx + 4], bl
je 0x4d36d1
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x20], bl
test byte [edx + 4], 2
je 0x4d36da
mov dword [ebp + 0x44], ebx
test byte [edx + 4], 4
je case.0x4d3768.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x4d3768.66
mov dword [ebp + 0x44], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x4d3768.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x4d3768.66
mov dword [ebp + 0x4c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x4d3768.66
mov dword [ebp + 0x50], ebx
mov byte [ebp + 0x20], bl
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x30], ebx
test byte [edx + 4], 2
je case.0x4d3768.66
mov dword [ebp + 0x34], ebx
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x68], ebx
test byte [edx + 4], 2
je case.0x4d3768.66
mov dword [ebp + 0x78], ebx
jmp case.0x4d3768.66
lea edi, [eax - 0x33]
cmp edi, 0xdd
ja case.0x4d3768.66
xor eax, eax
mov al, byte [edi + 0x4d3b54]
jmp dword [eax*4 + 0x4d3b14]
mov byte [ebp + 0x20], bl
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x34], ebx
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0x54], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x58], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0x5c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x60], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0x84], ebx
mov al, byte [edx + 9]
test al, 2
je 0x4d37db
mov dword [ebp + 0xa8], ebx
test byte [edx + 9], 4
je 0x4d37ed
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
test byte [edx + 9], 8
je 0x4d3805
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb0], ebx
test byte [edx + 0x11], 2
je 0x4d3817
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
test byte [edx + 0x11], 4
je case.0x4d3768.66
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 9]
test al, 2
je 0x4d384e
mov dword [ebp + 0xb8], ebx
test byte [edx + 9], 4
je 0x4d3860
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
test byte [edx + 9], 8
je 0x4d3878
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], ebx
test byte [edx + 0x11], 2
je 0x4d388a
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
test byte [edx + 0x11], 4
je case.0x4d3768.66
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0xc8], ebx
mov al, byte [edx + 4]
test bl, al
je 0x4d38c4
mov dword [ebp + 0xcc], ebx
test byte [edx + 6], bl
je case.0x4d3768.66
mov dword [ebp + 0xd4], ebx
jmp case.0x4d3768.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 4]
test bl, al
je 0x4d38e5
mov dword [ebp + 0xd0], ebx
test byte [edx + 6], bl
je case.0x4d3768.66
mov dword [ebp + 0xd8], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0xdc], ebx
mov dword [ebp + 0xe0], ebx
jmp case.0x4d3768.66
xor ecx, ecx
lea esi, [edx + 4]
mov cl, byte [edx + 3]
lea edi, [ebp + 0xe4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.0x4d3768.66
lea ecx, [edx + 4]
lea eax, [ebp + 0x1e4]
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov cx, word [ecx + 0xc]
mov word [eax + 0xc], cx
jmp case.0x4d3768.66
mov dword [ebp + 0x1f4], ebx
jmp case.0x4d3768.66
mov dword [ebp + 0x1f8], ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + 3]
mov esi, dword [esp + 0x14]
lea edx, [ecx + eax + 4]
mov eax, dword [esp + 0x18]
cmp edx, eax
mov dword [esp + 0x10], edx
jb 0x4d3548
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x4d397e
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x4d3981
mov dword [ebp + 0x24], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x458], 8
je 0x4d39f4
xor eax, eax
lea edx, [esp + 0x4c]
push eax
mov ecx, 0x100
lea edi, [esp + 0x50]
push 0x400
push edx
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x460]
push 0x2a
push eax
call fcn.004cbc50
add esp, 0x18
test eax, eax
je 0x4d3a01
cmp byte [esp + 0x55], 0x1c
jb 0x4d3a01
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x61]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
add ecx, edx
mov dword [ebp + 0x200], 0
shl ecx, 0xa
mov dword [ebp + 0x1fc], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x43c
ret
test byte [esp + 0x45c], 8
jne 0x4d39f4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret