Function at 0x495800
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x1010
call fcn.0059a050
push ebx
or ecx, 0xffffffff
push ebp
push esi
xor eax, eax
push edi
mov edi, dword [esp + 0x1030]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1028]
mov edx, dword [eax + 0xa]
mov ebp, dword [esp + 0x1024]
not ecx
dec ecx
mov edi, ecx
xor ecx, ecx
mov cx, word [eax + 8]
xor esi, esi
mov si, word [eax + 4]
xor ebx, ebx
mov bx, word [eax + 6]
inc edi
add eax, 0xa
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edi
lea ecx, [esi + ecx*4 + 0x44]
add ecx, edi
cmp ecx, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
jbe 0x495963
push 0
push 2
push 0
add edx, 0x1000
push 0
push ebp
mov dword [esp + 0x30], edx
mov dword [eax], edx
call fcn.004cab80
mov esi, eax
add esp, 0x14
and esi, 0xfff
cmp eax, ebx
jbe 0x4958ee
push 0
push 0
mov edi, eax
push 0
sub edi, esi
push edi
push ebp
call fcn.004cab80
push 0x14
push esi
lea edx, [esp + 0x3c]
push edx
push ebp
call fcn.004c68f0
add esp, 0x24
test eax, eax
jne 0x495a4c
push eax
push eax
lea eax, [edi + 0x1000]
push 0
push eax
push ebp
call fcn.004cab80
push 0x14
push esi
lea ecx, [esp + 0x3c]
push ecx
push ebp
call fcn.004caa20
add esp, 0x24
test eax, eax
jne 0x495a4c
mov eax, edi
cmp eax, ebx
mov esi, 0x1000
ja 0x49588f
xor eax, eax
push eax
push eax
push eax
push ebx
mov ecx, 0x400
lea edi, [esp + 0x30]
push ebp
rep stosd dword es:[edi], eax
call fcn.004cab80
push 0x14
push esi
lea edx, [esp + 0x3c]
push edx
push ebp
call fcn.004caa20
add esp, 0x24
test eax, eax
jne 0x495a4c
mov eax, dword [esp + 0x1028]
mov ecx, dword [esp + 0x102c]
add ebx, 0x1000
mov word [eax + 6], bx
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
lea eax, [eax + ecx - 1]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x49595b
mov edx, ecx
lea ecx, [edx]
add dword [eax], 0x1000
add eax, 4
dec ecx
jne 0x49594f
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp esi, 1
jne 0x49598c
mov eax, dword [esp + 0x1030]
push 0
push 0x5db00c
push eax
lea ecx, [esp + 0x2c]
push 0x5db00c
push ecx
inc edi
call fcn.004d63e0
add esp, 0x14
jmp 0x4959a8
mov edx, dword [esp + 0x1030]
push 0
push 0x5db00c
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004d63e0
add esp, 0x10
push 0
push 0
lea ecx, [esi + 0x3f]
push 0
push ecx
push ebp
call fcn.004cab80
push 0x14
lea edx, [edi + 1]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.004caa20
add esp, 0x24
test eax, eax
jne 0x495a4c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x495a00
mov edx, dword [esp + 0x102c]
lea ecx, [eax*4]
mov eax, dword [edx + 8]
push 0x14
push ecx
mov ecx, dword [eax]
lea edx, [ecx + esi - 1]
push edx
push ebp
call fcn.004caa20
add esp, 0x10
test eax, eax
jne 0x495a4c
mov ebx, dword [esp + 0x1028]
push 0x14
push 4
lea eax, [ebx + 0xa]
push eax
push ebp
call fcn.004caa20
add esp, 0x10
test eax, eax
jne 0x495a4c
mov eax, dword [esp + 0x10]
push 0x10
push 0
add edi, esi
mov esi, dword [esp + 0x24]
push 0
inc eax
push esi
push ebp
mov word [ebx + 8], ax
mov word [ebx + 4], di
call fcn.004cecb0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1010
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1010
ret