Function at 0x496d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 6
je 0x496d42
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004972b0
add esp, 8
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 6]
test eax, eax
jne 0x496f33
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
sub edx, dword [ecx + 8]
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
cmp edx, ecx
jg 0x496dab
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + 0x4b]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496bd0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x4a]
test edx, edx
jne 0x496df5
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x49]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
cmp dword [eax + 8], edx
jbe 0x496df3
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x49]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
jmp 0x496e2a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
sar edx, 4
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004970b0
add esp, 0xc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 0x24]
jne 0x496e49
mov edx, dword [ebp + 8]
push edx
call fcn.00497040
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x496e61
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x4b]
shl ecx, 4
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
jmp 0x496eca
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp edx, dword [ecx + 8]
jae 0x496ee1
mov eax, dword [ebp - 0x18]
mov dword [eax + 8], 0
jmp 0x496ec1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x36]
and edx, 1
je 0x496f27
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 4
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
push 0xffffffffffffffff
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00496c10
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
sub edx, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
xor eax, eax
jmp 0x497039
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x1c]
sub eax, dword [edx + 8]
cmp eax, 0x140
jg 0x496f54
push 0x14
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496bd0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
cmp ecx, dword [eax + 0x24]
jne 0x496f73
mov edx, dword [ebp + 8]
push edx
call fcn.00497040
add esp, 4
mov dword [ebp - 0x2c], eax
jmp 0x496f8b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
add ecx, 0x18
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
add ecx, 0x10
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 0x140
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x36]
and eax, 1
je 0x496ff0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496c10
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
call ecx
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x497019
mov eax, 2
jmp 0x497039
mov edx, dword [ebp - 0x20]
shl edx, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
sub ecx, edx
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004973b0
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret