Function at 0x4f5093e
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x2c]
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 4]
mov edi, ecx
call fcn.04f5088e
test eax, eax
jne 0x4f50f1b
movsx eax, word [ebp + 0x28]
mov edx, dword [edi]
push esi
push eax
push ebx
mov ecx, edi
call dword [edx + 8]
mov esi, dword [ebp + 0xc]
test dword [esi + 8], eax
je 0x4f50f1a
mov eax, dword [esi + 0xc]
cmp eax, 3
jne 0x4f50a9c
mov ebx, dword [ebx]
test ebx, ebx
je 0x4f50f1a
test byte [ebx + 0xa0], 1
je 0x4f50f1a
movzx eax, word [esi + 0x10]
test al, 2
je 0x4f50f1a
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0x1d8]
je 0x4f50f1a
and eax, 4
je 0x4f509d7
cmp ecx, dword [edi + 0x18]
je 0x4f509d7
cmp ecx, dword [edi + 0x1c]
jne 0x4f50f1a
push 0xa
pop edx
test ax, ax
je 0x4f509e2
push 0xe
pop edx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4f509f2
test byte [eax + 0x58], 1
je 0x4f509f2
or edx, 0x20
mov ebx, dword [ebp + 0x38]
cmp byte [ebx], 0
je 0x4f509fd
or edx, 0x40
movsx eax, word [esi + 6]
push edi
push dword [edi + 0x1c]
movsx esi, word [ebp + 0x28]
add eax, ecx
push eax
push dword [edi + 0x1c4]
mov ecx, dword [edi + 0x1bc]
push dword [edi + 0x1c8]
lea eax, [edi + 0x248]
push 0
push eax
lea eax, [edi + 0xf0]
push eax
lea eax, [edi + 0x24]
push eax
push edx
push esi
push dword [ebp + 0x2c]
call fcn.04f4bef7
mov byte [ebx], 1
mov eax, dword [edi + 0x1bc]
test byte [eax + 0x44], 1
je 0x4f50f1a
mov eax, dword [edi + 4]
test eax, eax
je 0x4f50f1a
cmp dword [eax + 0x30], 0
je 0x4f50f1a
cmp dword [eax + 0x34], 0
je 0x4f50f1a
mov eax, dword [edi + 0x1c4]
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x30]
mov al, byte [esi + eax]
mov byte [esi + ecx], al
mov ecx, dword [edi + 0x1c8]
mov edx, dword [edi + 4]
mov edx, dword [edx + 0x34]
mov eax, esi
shl eax, 2
mov ecx, dword [eax + ecx]
mov dword [eax + edx], ecx
jmp 0x4f50f1a
cmp eax, 2
jne 0x4f50cae
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x58
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x4f50f1a
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f46724
movsx ebx, word [esi + 6]
add eax, dword [ebp + 0x14]
add ebx, eax
cmp dword [ebp + 0x30], 0
je 0x4f50b21
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx + 0x4a], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x4e], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x4f], 0
mov ax, word [esi + 6]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x4c], ax
mov ecx, dword [ebp - 4]
mov eax, ebx
imul eax, eax, 0x2710
cdq
add eax, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x41
jmp 0x4f50b7b
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f50479
mov ecx, dword [ebp - 4]
mov word [ecx + 0x4a], ax
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f504ac
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4e], al
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f504e1
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x4f], al
mov ax, word [esi + 6]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x4c], ax
mov eax, dword [ebp + 0x18]
add ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 2
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov ax, word [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x48], ax
mov al, byte [esi + 0x21]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x53], al
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x28], 5
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov ax, word [esi + 0x18]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x44], ax
mov ax, word [esi + 0x1a]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x46], ax
mov al, byte [esi + 0x1e]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x50], al
mov al, byte [esi + 0x1f]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x51], al
mov al, byte [esi + 0x20]
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x52], al
mov eax, dword [edi + 0x34c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov ax, word [esi + 0x22]
mov ecx, dword [ebp - 4]
mov word [ecx + 0x54], ax
mov ax, word [esi + 0x24]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x34]
mov word [ecx + 0x56], ax
mov eax, dword [ebp - 4]
or dword [eax + 0x14], 0x80
test esi, esi
je 0x4f50c68
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
lea edx, [eax + ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x38]
add esi, edx
add ebx, eax
cmp ebx, esi
jl 0x4f50c46
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
jmp 0x4f50c68
sub eax, edx
sub eax, dword [ebp + 0x34]
add dword [ecx + 0x40], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
jge 0x4f50c5e
and dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov eax, dword [ebp - 4]
mov byte [eax + 0x51], 1
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
lea ecx, [ebp + 0x28]
push ecx
push 0x4f414cc
push edi
call dword [eax]
test eax, eax
jl 0x4f50c92
mov eax, dword [ebp + 0x28]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 4]
mov esi, dword [ebp + 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
test eax, eax
jge 0x4f50f1a
push dword [ebp - 4]
jmp 0x4f50f14
cmp eax, 1
jne 0x4f50f1a
mov al, byte [esi + 0x1b]
test al, 0x10
je 0x4f50cc6
mov eax, dword [ebx]
mov al, byte [eax + 0x9c]
and dword [ebp + 0xc], 0
mov byte [ebp + 0x34], al
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x2b]
push eax
push dword [ebp + 0x24]
lea eax, [edi + 0x1e0]
push eax
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp + 0x2b], 0
call dword [eax + 0xc]
push eax
push dword [ebp + 0x34]
lea eax, [edi + 0x24]
push eax
push esi
mov ecx, ebx
call fcn.04f62f59
test eax, eax
jl 0x4f50f1a
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x50
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x4f50f1a
mov al, byte [esi + 0x20]
mov ecx, dword [ebp - 8]
or al, 1
mov byte [ecx + 0x45], al
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f46724
movsx ebx, word [esi + 6]
add eax, dword [ebp + 0x14]
add ebx, eax
cmp dword [ebp + 0x30], 0
je 0x4f50d89
mov ecx, dword [ebp - 8]
xor eax, eax
mov word [ecx + 0x3e], ax
mov eax, dword [ebp - 8]
mov byte [eax + 0x42], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x43], 0
mov ax, word [esi + 6]
mov ecx, dword [ebp - 8]
mov word [ecx + 0x40], ax
mov ecx, dword [ebp - 8]
mov eax, ebx
imul eax, eax, 0x2710
cdq
add eax, dword [ebp + 0x1c]
adc edx, dword [ebp + 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0x41
jmp 0x4f50de3
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f50479
mov ecx, dword [ebp - 8]
mov word [ecx + 0x3e], ax
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f504ac
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x42], al
movzx eax, word [esi + 4]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.04f504e1
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x43], al
mov ax, word [esi + 6]
mov ecx, dword [ebp - 8]
mov word [ecx + 0x40], ax
mov eax, dword [ebp + 0x18]
add ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], ebx
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 2
movzx eax, byte [esi + 0x17]
test al, al
je 0x4f50df9
mov ebx, dword [ebp - 8]
push eax
add ebx, 0x10
call fcn.04f508e2
add dword [ebx], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x38], eax
movzx eax, byte [esi + 0x18]
test al, al
je 0x4f50e18
mov ebx, dword [ebp - 8]
push eax
add ebx, 0x38
call fcn.04f508e2
add dword [ebx], eax
mov al, byte [esi + 0x16]
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x44], al
cmp byte [esi + 0x19], 0
je 0x4f50e48
mov eax, dword [ebp - 8]
mov bl, byte [esi + 0x19]
add eax, 0x44
mov dword [ebp + 0x10], eax
call dword [sym.imp.msvcrt.dll_rand]
movzx ecx, bl
cdq
idiv ecx
mov eax, dword [ebp + 0x10]
shr bl, 1
sub dl, bl
add byte [eax], dl
mov eax, dword [ebp - 8]
cmp byte [eax + 0x44], 1
jae 0x4f50e58
mov byte [eax + 0x44], 1
mov eax, dword [ebp - 8]
cmp byte [eax + 0x44], 0x7f
jbe 0x4f50e65
mov byte [eax + 0x44], 0x7f
mov eax, dword [ebp - 8]
mov cx, word [esi + 0x14]
mov word [eax + 0x3c], cx
mov cl, byte [ebp + 0x2b]
mov eax, dword [ebp - 8]
mov byte [eax + 0x4b], cl
mov eax, dword [ebp - 8]
mov cl, byte [ebp + 0x34]
mov dword [eax + 0x28], 1
mov eax, dword [ebp - 8]
mov byte [eax + 0x49], cl
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x2c]
mov al, byte [eax + 9]
mov byte [ecx + 0x4a], al
mov eax, dword [edi + 0x34c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x30], eax
mov al, byte [esi + 0x17]
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x46], al
mov al, byte [esi + 0x18]
mov ecx, dword [ebp - 8]
mov byte [ecx + 0x47], al
mov ecx, dword [ebp - 8]
mov al, byte [esi + 0x19]
mov byte [ecx + 0x48], al
mov eax, dword [ebp - 8]
mov cl, byte [ebp + 0xc]
mov byte [eax + 0x4c], cl
mov edi, dword [edi + 0x10]
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
push 0x4f414cc
push edi
call dword [eax]
test eax, eax
jl 0x4f50f01
mov eax, dword [ebp + 8]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
mov esi, dword [ebp + 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
test eax, eax
jge 0x4f50f1a
push dword [ebp - 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x44]
pop esi
pop edi
pop ebx
leave
ret 0x34