Function at 0x4c1b1c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push eax
call fcn.004c1817
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c1b3f
mov eax, dword [ebp - 8]
jmp 0x4c1e9f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
xor eax, eax
mov al, byte [edx + 3]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + 0x41]
test edx, edx
jne 0x4c1b69
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffffffff
xor eax, eax
jmp 0x4c1e9f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 0x14]
sub ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edx + 3]
test eax, eax
jne 0x4c1bab
cmp dword [ebp + 0xc], 0
jne 0x4c1bab
mov eax, 0xb
jmp 0x4c1e9f
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jg 0x4c1df3
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
mov word [eax + 0x3a], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx + 3]
test edx, edx
je 0x4c1caa
cmp dword [ebp - 4], 0
je 0x4c1bf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004c1190
add esp, 8
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [edx + 9]
add eax, ecx
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edx + 7]
test eax, eax
je 0x4c1c51
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov dl, byte [ecx]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x7f
ja 0x4c1c35
mov dword [ebp - 0x38], 1
jmp 0x4c1c48
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8c78
add esp, 8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b8a86
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp + 0x14]
jg 0x4c1c7c
jl 0x4c1c73
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x10]
jae 0x4c1c7c
mov dword [ebp - 0x10], 0xffffffff
jmp 0x4c1ca5
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x14]
jl 0x4c1c9e
jg 0x4c1c8e
mov edx, dword [ebp - 0x28]
cmp edx, dword [ebp + 0x10]
jbe 0x4c1c9e
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
jmp 0x4c1ca5
mov dword [ebp - 0x10], 0
jmp 0x4c1d86
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c16fd
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x34]
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x24]
jl 0x4c1d0f
jg 0x4c1cea
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x28]
jb 0x4c1d0f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
call dword [ecx + 0xc]
add esp, 0x14
mov dword [ebp - 0x10], eax
jmp 0x4c1d86
push 1
mov edx, dword [ebp - 0x28]
push edx
call fcn.004b79e0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4c1d30
mov eax, 7
jmp 0x4c1e9f
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004c13f7
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b7aa2
add esp, 4
cmp dword [ebp - 8], 0
je 0x4c1d86
mov eax, dword [ebp - 8]
jmp 0x4c1e9f
cmp dword [ebp - 0x10], 0
jne 0x4c1dce
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edx + 6]
test eax, eax
je 0x4c1db8
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [ecx + 4]
test edx, edx
jne 0x4c1db8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x4c1df3
cmp dword [ebp + 0x18], 0
je 0x4c1dc7
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
xor eax, eax
jmp 0x4c1e9f
cmp dword [ebp - 0x10], 0
jge 0x4c1de2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4c1dee
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
sub ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4c1bab
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov al, byte [edx + 4]
test eax, eax
je 0x4c1e08
mov dword [ebp - 0x18], 0
jmp 0x4c1e52
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx + 0x14]
cmp dword [ebp - 0x14], edx
jl 0x4c1e36
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [eax + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x44]
lea ecx, [eax + ecx + 8]
push ecx
call fcn.004bfb7f
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4c1e52
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c1190
add esp, 8
push eax
call fcn.004bfb7f
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c1e6a
cmp dword [ebp + 0x18], 0
je 0x4c1e66
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
xor eax, eax
jmp 0x4c1e9f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp + 8]
mov word [edx + 0x3a], 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c1942
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c1e9a
mov eax, dword [ebp - 8]
jmp 0x4c1e9f
jmp 0x4c1b69
mov esp, ebp
pop ebp
ret