Function at 0x4c5f98
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1ec]
mov eax, dword [eax]
test byte [eax + 0x3c], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
je 0x4c5fbf
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x20]
push ebx
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx + ebx*4]
shl ebx, 4
cmp dword [ebp + 0x14], 0
mov edx, dword [ebx + ecx + 0x38]
lea eax, [ebx + ecx + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
je 0x4c602b
cmp dword [ebp + 0x10], 0
jne 0x4c6023
cmp dword [ecx], 1
jg 0x4c6023
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4c6006
test dword [eax + 4], 0x200000
jne 0x4c6023
mov edx, dword [esi]
call fcn.004a33eb
test eax, 0x200000
jne 0x4c6023
mov edx, dword [esi + 0x30]
call fcn.004a33eb
test eax, 0x200000
je 0x4c602b
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
push edi
mov edi, dword [edx + 0x3c]
test edi, edi
je 0x4c6043
cmp dword [esi + 0x3c], 0
jne 0x4c624b
cmp dword [edx + 0x40], 0
jne 0x4c624b
movzx ecx, word [esi + 6]
mov dword [ebp - 0x24], ecx
test cl, 0x40
je 0x4c6061
test edi, edi
jne 0x4c624b
cmp dword [eax], 0
je 0x4c624b
movzx eax, word [edx + 6]
test al, 1
jne 0x4c624b
test edi, edi
je 0x4c6090
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jg 0x4c624b
cmp dword [ebp + 0x10], 0
jne 0x4c624b
and ecx, 1
je 0x4c609f
cmp dword [ebp + 0x14], 0
jne 0x4c624b
cmp dword [esi + 0x30], 0
je 0x4c60af
cmp dword [edx + 0x30], 0
jne 0x4c624b
cmp dword [ebp + 0x10], 0
je 0x4c60bf
cmp dword [edx + 0x30], 0
jne 0x4c624b
test edi, edi
je 0x4c60da
cmp dword [esi + 0x24], 0
jne 0x4c624b
test edi, edi
je 0x4c60da
test cx, cx
jne 0x4c624b
movzx eax, word [edx + 6]
test eax, 0x1800
jne 0x4c624b
test dword [ebp - 0x24], 0x800
je 0x4c60fc
cmp dword [edx + 0x34], 0
jne 0x4c624b
mov edi, dword [ebp - 4]
test byte [ebx + edi + 0x2c], 0x20
lea eax, [ebx + edi + 0x2c]
mov dword [ebp - 0x28], eax
jne 0x4c624b
cmp dword [edx + 0x34], 0
je 0x4c61ad
cmp dword [edx + 0x30], 0
jne 0x4c624b
cmp dword [ebp + 0x10], 0
jne 0x4c624b
test cx, cx
jne 0x4c624b
cmp dword [edi], 1
jne 0x4c624b
mov eax, edx
jmp 0x4c6148
test byte [eax + 6], 5
jne 0x4c624b
mov ecx, dword [eax + 0x34]
test ecx, ecx
je 0x4c6163
cmp byte [eax + 4], 0x74
jne 0x4c624b
mov edi, dword [eax + 0x20]
cmp dword [edi], 1
jl 0x4c624b
mov edi, dword [edx]
mov eax, dword [eax]
mov edi, dword [edi]
cmp edi, dword [eax]
jne 0x4c624b
mov eax, ecx
test eax, eax
jne 0x4c6148
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4c61ad
cmp dword [eax], ecx
jle 0x4c61ad
mov eax, dword [eax + 4]
add eax, 0x14
lea esp, [esp]
cmp word [eax], 0
je 0x4c624b
mov edx, dword [esi + 0x30]
inc ecx
add eax, 0x18
cmp ecx, dword [edx]
jl 0x4c6198
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + eax + 0x10]
push 0
lea edi, [ebx + eax + 0x10]
mov eax, dword [ebp + 8]
push 0
push 0
push 0x15
mov dword [ebp - 0x14], edi
mov dword [eax + 0x1ec], ecx
call fcn.004c123a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x1ec], edx
mov eax, dword [ecx + 0x34]
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4c628b
lea esp, [esp]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp - 8]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [ebp - 0x24], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.004b4a93
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x40], edx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x20], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x4c6254
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x34], edx
jmp 0x4c6267
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
test ecx, ecx
je 0x4c6261
mov dword [ecx + 0x38], eax
mov dword [eax + 0x38], esi
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41], 0
jne 0x4c65d3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4c61f8
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [ebx + eax + 0xc]
call fcn.0049bfbf
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
call fcn.0049bfbf
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + ecx + 0x14]
mov ecx, dword [ebp - 8]
call fcn.0049bfbf
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebx + eax + 0xc], ecx
mov dword [ebx + eax + 0x14], ecx
lea ebx, [ebx + eax + 0x18]
mov eax, dword [ebx]
mov dword [edi], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x4c631b
movzx ecx, word [eax + 0x24]
cmp ecx, 1
jne 0x4c6310
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x198]
test ecx, ecx
jne 0x4c62f4
mov ecx, edx
mov edx, dword [ecx + 0x20c]
mov dword [eax + 0x44], edx
mov dword [ecx + 0x20c], eax
mov dword [ebx], 0
mov ebx, esi
mov dword [ebp - 0x20], ebx
jmp 0x4c632b
dec ecx
mov word [eax + 0x24], cx
mov dword [ebx], 0
mov ebx, esi
mov dword [ebp - 0x20], ebx
jmp 0x4c632b
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov esi, dword [eax]
mov edi, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x20]
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], eax
test eax, eax
je 0x4c6351
mov ecx, dword [ebp - 0x28]
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
jmp 0x4c636f
push 0
xor ecx, ecx
xor eax, eax
mov edx, edi
call fcn.004b51f6
add esp, 4
mov dword [ebx + 0x20], eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4c65c4
cmp esi, 1
jle 0x4c6396
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea edx, [esi - 1]
push edx
push edi
call fcn.004afd18
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp byte [edi + 0x41], 0
mov dword [ebp - 4], eax
jne 0x4c65c4
test esi, esi
jle 0x4c63f1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x18], eax
lea eax, [ecx + edx + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esi
jmp 0x4c63b8
mov ecx, dword [ebp - 0x14]
mov edi, dword [ecx + 0x38]
mov esi, dword [ebp - 8]
call fcn.004a459b
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov esi, eax
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov esi, 0x50
push esi
push 0
push eax
call fcn.00402e70
add dword [ebp - 0x14], esi
add dword [ebp - 0x18], esi
add esp, 0xc
dec dword [ebp - 0x24]
jne 0x4c63b8
mov cl, byte [ebp + 0xb]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov byte [edx + eax + 0x2c], cl
mov ecx, dword [ebx]
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp + 8], eax
cmp dword [ecx], eax
jle 0x4c645e
mov dword [ebp - 0x14], eax
lea ecx, [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx + 4], 0
jne 0x4c644f
mov ebx, dword [eax + edx + 8]
push esi
call fcn.004a8a4e
add esp, 4
mov esi, eax
call fcn.0049c1b8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0xc]
mov dword [edx + eax + 4], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0x14], 0x18
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ecx]
jl 0x4c6418
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx]
push ecx
push edx
push eax
push esi
call fcn.004bb308
add esp, 0x10
cmp dword [ebp + 0x10], 0
je 0x4c649f
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x28]
push ecx
push edx
push eax
push esi
call fcn.004bb308
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x2c]
push ecx
push edx
push eax
push esi
call fcn.004bb212
add esp, 0x20
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x4c64df
mov dword [ebp + 8], ecx
cmp dword [eax], ecx
jle 0x4c64d3
lea ebx, [ebx]
mov edx, dword [eax + 4]
xor eax, eax
mov word [edx + ecx + 0x14], ax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
inc edx
add ecx, 0x18
mov dword [ebp + 8], edx
cmp edx, dword [eax]
jl 0x4c64b8
mov dword [ebx + 0x30], eax
mov dword [edi + 0x30], 0
jmp 0x4c64f7
mov eax, dword [ebx + 0x30]
cmp eax, ecx
je 0x4c64f7
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
push ecx
push edx
push eax
push esi
call fcn.004bb308
add esp, 0x10
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4c6511
push 0
push 0
push eax
push esi
call fcn.004b85e9
add esp, 0x10
mov dword [ebp + 8], eax
jmp 0x4c6518
mov dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
mov eax, dword [ebx + 0x24]
je 0x4c656e
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x24], ecx
mov edx, dword [edi]
mov ecx, dword [ebx + 0x2c]
push edx
push eax
push ecx
push esi
call fcn.004bb212
push 0
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x2c]
push 0
push eax
push esi
call fcn.004b85e9
mov edx, dword [ebx + 0x2c]
push edx
mov ecx, esi
call fcn.004b462f
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x28]
push 0
push eax
push esi
call fcn.004ae35a
add esp, 0x30
mov dword [ebx + 0x28], eax
jmp 0x4c6590
mov ecx, dword [edi]
mov edx, dword [ebp - 0x10]
push ecx
push edx
push eax
push esi
call fcn.004bb212
mov dword [ebx + 0x24], eax
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
call fcn.004b462f
add esp, 0x14
mov dword [ebx + 0x24], eax
mov cx, word [edi + 6]
and cx, 1
or word [ebx + 6], cx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x4c65ad
mov dword [ebx + 0x3c], eax
mov dword [edi + 0x3c], 0
mov ebx, dword [ebx + 0x34]
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], edx
test ebx, ebx
jne 0x4c6328
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
push 1
push eax
push edi
call fcn.004a5405
add esp, 0xc
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret