Function at 0x498ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 0x42]
test al, al
je 0x498cb7
movzx eax, al
pop edi
add esp, 0x10
ret
push edi
call fcn.00498920
add esp, 4
test eax, eax
jne 0x498f72
mov al, byte [edi + 0x41]
test al, al
jne 0x498ce0
mov eax, dword [esp + 0x28]
mov dword [eax], 0xffffffff
xor eax, eax
pop edi
add esp, 0x10
ret
push ebx
push ebp
push esi
mov ecx, dword [edi + 0x18]
movzx ebx, word [ecx + 0x14]
xor esi, esi
or ebp, 0xffffffff
dec ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ebx
js 0x498ec2
lea eax, [ebx + esi]
cdq
sub eax, edx
mov dl, byte [edi + 0x41]
sar eax, 1
xor esi, esi
test dl, dl
mov dword [edi + 0x1c], eax
mov word [edi + 0x3a], si
jne 0x498d22
xor ebp, ebp
mov dword [esp + 0x1c], esi
jmp 0x498d58
mov ecx, dword [edi + 0x18]
movzx esi, word [ecx + 0xe]
mov edx, dword [ecx + 0x44]
add esi, edx
lea ebp, [esi + eax*2]
xor eax, eax
mov ah, byte [ebp]
lea esi, [edi + 0x20]
mov al, byte [ebp + 1]
add eax, edx
push eax
push ecx
call fcn.00497570
mov ecx, dword [edi + 0x2c]
mov ebp, dword [edi + 0x28]
mov dword [esp + 0x24], ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
add esp, 8
mov al, byte [ecx + 3]
test al, al
je 0x498db2
mov eax, dword [esp + 0x30]
cmp esi, eax
jg 0x498d90
jl 0x498d6f
cmp ebp, dword [esp + 0x2c]
jae 0x498d7c
mov eax, dword [edi + 0x1c]
or ebp, 0xffffffff
inc eax
mov dword [esp + 0x24], eax
jmp 0x498d9f
cmp esi, eax
jl 0x498ea1
jg 0x498d90
cmp ebp, dword [esp + 0x2c]
jbe 0x498ea1
mov ebp, 1
mov eax, dword [edi + 0x1c]
dec eax
mov dword [esp + 0x14], eax
mov ebx, eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov esi, eax
jg 0x498ec2
jmp 0x498d02
cmp word [edi + 0x3a], 0
mov ebx, dword [edi + 0x18]
jne 0x498de4
movzx edx, word [ebx + 0xe]
mov eax, dword [ebx + 0x44]
mov ecx, dword [edi + 0x1c]
add edx, eax
lea ecx, [edx + ecx*2]
movzx edx, byte [ecx + 1]
mov dh, byte [ecx]
lea esi, [edi + 0x20]
add edx, eax
push edx
push ebx
call fcn.00497570
mov esi, dword [esp + 0x24]
add esp, 8
movzx ecx, word [edi + 0x34]
mov edx, dword [edi + 0x20]
mov al, byte [ebx + 3]
add ecx, edx
test al, al
je 0x498df8
xor edx, edx
jmp 0x498dfb
mov edx, dword [edi + 0x28]
movzx eax, word [edi + 0x36]
cmp eax, edx
jbe 0x498e05
mov eax, edx
cdq
cmp edx, esi
jl 0x498e2a
jg 0x498e10
cmp eax, ebp
jb 0x498e2a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [edi + 0x10]
push edx
push ecx
push ebp
push eax
call dword [edi + 0xc]
add esp, 0x14
mov ebp, eax
jmp 0x498e82
push ebp
call fcn.00492040
mov esi, eax
add esp, 4
test esi, esi
je 0x498f34
mov al, byte [edi + 0x41]
test al, al
jne 0x498e4a
movzx ebx, byte [edi + 0x42]
jmp 0x498e5c
push 0
push esi
push ebp
xor eax, eax
mov ecx, edi
call fcn.004985a0
add esp, 0xc
mov ebx, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 0x10]
push ecx
push edx
push esi
push ebp
push eax
call dword [edi + 0xc]
push esi
mov ebp, eax
call fcn.00492060
add esp, 0x18
test ebx, ebx
jne 0x498f41
test ebp, ebp
mov ecx, dword [esp + 0x10]
je 0x498ea3
jge 0x498d95
mov eax, dword [edi + 0x1c]
mov ebx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x24], eax
jmp 0x498d9f
xor ebp, ebp
mov al, byte [ecx + 6]
test al, al
je 0x498f4b
mov al, byte [ecx + 4]
test al, al
jne 0x498f4b
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x24], edx
mov esi, edx
mov al, byte [ecx + 4]
test al, al
jne 0x498f63
movzx eax, word [ecx + 0x14]
cmp esi, eax
mov eax, dword [ecx + 0x44]
jl 0x498ee2
movzx edx, byte [ecx + 8]
lea eax, [edx + eax + 8]
jmp 0x498ef5
movzx ecx, word [ecx + 0xe]
add ecx, eax
xor edx, edx
mov dh, byte [ecx + esi*2]
lea ecx, [ecx + esi*2]
mov dl, byte [ecx + 1]
add eax, edx
movzx ecx, byte [eax + 2]
xor edx, edx
mov dh, byte [eax]
mov dl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
test edx, edx
je 0x498f63
push edi
mov dword [edi + 0x1c], esi
mov word [edi + 0x3a], 0
call fcn.004988c0
add esp, 4
test eax, eax
je 0x498ce3
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x10
ret
pop esi
pop ebp
pop ebx
mov eax, 7
pop edi
add esp, 0x10
ret
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x498f6d
pop esi
pop ebp
pop ebx
mov dword [eax], 0
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x498f6d
mov dword [eax], ebp
pop esi
pop ebp
xor eax, eax
pop ebx
pop edi
add esp, 0x10
ret