Function at 0x497cd0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
cmp eax, dword [ebp + 8]
jae 0x4981df
mov edx, dword [esi]
movzx edi, byte [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
cmp word [edx], 1
je 0x497e5c
mov ebx, dword [edx + 4]
movzx ecx, word [edx + 2]
xor edx, edx
mov eax, dword [esi + 0x48]
div ecx
mov dword [esi + 0x48], eax
movzx ecx, byte [ebx]
cmp ecx, edi
jne 0x497d68
movzx ecx, byte [ebx + 1]
imul ecx, eax
mov dword [esi + 0x48], ecx
cmp ecx, 0x1000000
jae 0x497d59
shl ecx, 8
mov dword [esi + 0x48], ecx
mov ecx, esi
call fcn.00498240
mov eax, dword [esi + 0x48]
cmp eax, 0x1000000
jae 0x497d59
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.00497310
jmp 0x4981cd
mov eax, dword [esp + 0x14]
mov dword [esi + 0x14], 0
movzx edi, byte [ebx + 1]
movzx ecx, word [eax]
dec ecx
nop dword [eax + eax]
movzx eax, byte [ebx + 6]
add ebx, 6
movzx edx, byte [ebx + 1]
cmp eax, dword [esp + 0x1c]
je 0x497e0d
add edi, edx
sub ecx, 1
jne 0x497d80
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx + 2]
mov ecx, dword [esi + 0x48]
sub edx, edi
mov eax, ecx
imul eax, edi
lea edi, [esp + 0x30]
add dword [esi + 0x50], eax
mov eax, dword [esi + 8]
adc dword [esi + 0x54], 0
imul ecx, edx
mov dword [esi + 0x48], ecx
mov ecx, 0x40
movzx eax, byte [eax]
add eax, 0xc0
shr eax, 5
and eax, 8
mov dword [esi + 0x1c], eax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
movzx eax, byte [ebx]
mov byte [esp + eax + 0x30], 0
nop dword [eax + eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + 6]
add edx, 0xc
mov byte [esp + ecx + 0x30], 0
mov byte [esp + eax + 0x30], 0
cmp edx, ebx
jb 0x497df0
jmp 0x497f86
mov eax, dword [esi + 0x48]
imul eax, edi
add dword [esi + 0x50], eax
adc dword [esi + 0x54], 0
imul edx, dword [esi + 0x48]
mov dword [esi + 0x48], edx
cmp edx, 0x1000000
jae 0x497e4d
shl edx, 8
mov ecx, esi
mov dword [esi + 0x48], edx
call fcn.00498240
mov eax, dword [esi + 0x48]
cmp eax, 0x1000000
jae 0x497e4d
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.00497280
jmp 0x4981cd
mov eax, dword [esi + 8]
movzx edi, byte [eax]
add edi, 0xc0
shr edi, 5
and edi, 8
mov dword [esi + 0x1c], edi
mov eax, dword [edx + 8]
movzx ebx, byte [edx + 2]
movzx eax, word [eax]
movzx edx, byte [eax + esi + 0x1a7]
lea eax, [ebx + 0xc0]
shr eax, 4
and eax, 0x10
add edx, eax
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 3]
mov eax, dword [esi + 0x20]
shl ecx, 6
sar eax, 0x1a
add ecx, edi
add ecx, edx
and eax, 0x20
add eax, ecx
mov ecx, dword [esi + 0x48]
add eax, dword [esi + 0x14]
movzx edx, word [esi + eax*2 + 0x97c]
lea edi, [esi + eax*2]
shr ecx, 0xe
imul ecx, edx
lea eax, [edx + 0x20]
shr eax, 7
sub edx, eax
movzx eax, dx
cmp ebx, dword [esp + 0x1c]
jne 0x497f45
sub eax, 0xffffff80
mov word [edi + 0x97c], ax
mov dword [esi + 0x48], ecx
cmp ecx, 0x1000000
jae 0x497ef5
shl ecx, 8
mov dword [esi + 0x48], ecx
mov ecx, esi
call fcn.00498240
mov ebx, dword [esp + 0x14]
add ebx, 2
movzx edx, word [ebx + 4]
mov cl, byte [ebx + 1]
movzx eax, word [ebx + 2]
inc dword [esi + 0x20]
shl edx, 0x10
or edx, eax
mov dword [esi + 8], ebx
cmp cl, 0x80
mov dword [esi + 0x14], 1
setb al
add al, cl
mov byte [ebx + 1], al
cmp dword [esi + 0xc], 0
jne 0x497f39
cmp edx, dword [esi + 0x40]
jbe 0x497f39
mov dword [esi], edx
mov dword [esi + 4], edx
jmp 0x4981cd
mov ecx, esi
call fcn.004973c0
jmp 0x4981cd
mov word [edi + 0x97c], ax
lea edi, [esp + 0x30]
shr edx, 0xa
movzx eax, byte [edx + esi + 0x3a8]
add dword [esi + 0x50], ecx
mov dword [esi + 0x10], eax
adc dword [esi + 0x54], 0
sub dword [esi + 0x48], ecx
or eax, 0xffffffff
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + 2]
mov dword [esi + 0x14], 0
mov byte [esp + eax + 0x30], 0
mov eax, dword [esi + 0x48]
cmp eax, 0x1000000
jae 0x497fb4
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov eax, dword [esi + 0x48]
cmp eax, 0x1000000
jae 0x497fb4
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov ebx, dword [esi]
movzx eax, word [ebx]
mov dword [esp + 0x18], eax
nop dword [eax]
inc dword [esi + 0xc]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4981cd
movzx edx, word [ebx]
mov dword [esp + 0x20], edx
cmp edx, eax
je 0x497fc0
mov dword [esi], ebx
cmp edx, 0x100
je 0x498052
movzx ecx, word [ebx + 2]
mov edi, edx
sub edi, eax
mov eax, dword [ebx + 8]
movzx eax, word [eax]
sub eax, edx
cmp edi, eax
sbb edx, edx
imul eax, dword [esp + 0x20], 0xb
neg edx
add edx, 0xef
cmp ecx, eax
sbb eax, eax
and eax, 2
add edx, eax
movzx eax, byte [edi + esi + 0x2a7]
shl eax, 4
add edx, eax
cmp edi, dword [esp + 0x18]
sbb eax, eax
and eax, 4
add edx, eax
add edx, dword [esi + 0x1c]
movzx eax, word [esi + edx*4]
lea edi, [esi + edx*4]
mov cl, byte [edi + 2]
mov edx, eax
shr edx, cl
sub eax, edx
mov dword [esp + 0x14], edi
mov word [edi], ax
xor eax, eax
test edx, edx
sete al
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
jmp 0x498064
lea ecx, [esi + 0x3b8]
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ecx
mov edi, dword [ebx + 4]
xor ebx, ebx
nop dword [eax]
movzx eax, byte [edi]
mov cl, byte [edi + 1]
mov byte [esp + 0x13], cl
cmp eax, dword [esp + 0x1c]
je 0x4980ed
movzx ecx, byte [esp + eax + 0x30]
add edi, 6
movzx eax, byte [esp + 0x13]
and ecx, eax
add ebx, ecx
sub edx, 1
jne 0x498070
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, ebx
add word [eax], cx
mov eax, dword [esi + 0x48]
div ecx
mov ecx, eax
imul ecx, ebx
add dword [esi + 0x50], ecx
adc dword [esi + 0x54], 0
imul eax, dword [esp + 0x18]
sub edi, 6
mov dword [esi + 0x48], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
movzx eax, byte [edi]
mov byte [esp + eax + 0x30], 0
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [edx + 6]
add edx, 0xc
mov byte [esp + ecx + 0x30], 0
mov byte [esp + eax + 0x30], 0
cmp edx, edi
jb 0x4980d0
jmp 0x497f86
movzx eax, cl
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov cl, byte [eax + 2]
mov byte [esp + 0x13], cl
cmp cl, 7
jae 0x498125
add byte [eax + 3], 0xff
jne 0x498125
shl word [eax], 1
mov al, 3
shl al, cl
mov ecx, dword [esp + 0x14]
mov byte [ecx + 3], al
mov al, byte [esp + 0x13]
inc al
mov byte [ecx + 2], al
mov ecx, edx
mov dword [esi + 8], edi
and edx, 1
shr ecx, 1
mov eax, edx
mov dword [esp + 0x1c], ecx
neg eax
and eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
add ebx, eax
test ecx, ecx
je 0x49817e
lea eax, [edx + edx*2]
mov esi, ecx
lea edi, [edi + eax*2]
nop dword [eax]
movzx eax, byte [edi + 6]
lea edi, [edi + 0xc]
movzx ecx, byte [edi - 0xc]
movzx edx, byte [esp + eax + 0x30]
movzx eax, byte [edi - 5]
movzx ecx, byte [esp + ecx + 0x30]
and edx, eax
movzx eax, byte [edi - 0xb]
and ecx, eax
add ebx, ecx
add ebx, edx
sub esi, 1
jne 0x498150
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x48]
xor edx, edx
div ebx
mov ecx, eax
imul ecx, dword [esp + 0x2c]
add dword [esi + 0x50], ecx
adc dword [esi + 0x54], 0
imul eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
cmp eax, 0x1000000
jae 0x4981c6
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov eax, dword [esi + 0x48]
cmp eax, 0x1000000
jae 0x4981c6
shl eax, 8
mov ecx, esi
mov dword [esi + 0x48], eax
call fcn.00498240
mov ecx, esi
call fcn.00497380
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [ebp + 8]
jb 0x497cf4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4