Function at 0x497970
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x497d97
sub esp, 0x3c
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x497d6b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
movzx ebx, byte [edx + 5]
test bl, bl
je 0x497d64
mov ebx, dword [edx + 0x14]
cmp ebx, ecx
jge 0x497d64
mov ecx, ebx
shl ebx, 1
test ebx, ebx
jle 0x497d47
movzx ebp, byte [edx + 9]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x497d2f
movzx ebp, byte [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x497d24
mov ebx, ecx
shl ecx, 2
lea ecx, [ecx + ebx - 1]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ecx
movzx ebp, byte [edx + 4]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x497a0c
mov ebp, dword [edx + 0x10]
cmp ebp, ecx
jle 0x497a0c
movzx esi, byte [edx + 6]
xchg esi, eax
test al, al
xchg esi, eax
je 0x497d01
mov ebp, dword [edx]
mov esi, dword [ebp]
mov edi, dword [ebp + 4]
mov ebp, dword [ebp + 8]
movzx ecx, byte [edx + 8]
test cl, cl
je 0x497cfa
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jbe 0x497d90
lea ecx, [edi + 2]
mov eax, dword [esp + 0x58]
movzx eax, byte [eax + 0x10]
cmp ecx, ebp
jg 0x497caf
mov byte [esi + edi], 0x30
mov byte [esi + edi + 1], al
xor eax, eax
jmp 0x497a69
xchg edi, eax
mov byte [esi + edx], al
xchg edi, eax
mov byte [esi + edx + 1], al
mov edi, dword [esp + 0x28]
lea eax, [edi + 1]
mov edx, dword [esp + 0x40]
mov ecx, ebx
mov ebx, dword [esp + 0x38]
cmp eax, ebx
jge 0x497c5a
mov dword [esp + 0x28], eax
movzx edi, byte [edx + 9]
xchg edi, eax
test al, al
xchg edi, eax
je 0x497c4b
test eax, eax
jle 0x497c3c
lea edi, [ecx + 1]
cmp edi, ebp
jg 0x497bf6
mov byte [esi + ecx], 0x20
movzx ecx, byte [edx + 8]
test cl, cl
je 0x497be9
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jbe 0x497d89
lea edx, [edi + 2]
mov ebx, dword [esp + 0x58]
movzx ebx, byte [ebx + 0x10]
cmp edx, ebp
jg 0x497b9c
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov byte [esi + edi], 0x30
mov byte [esi + edi + 1], bl
je 0x497b7f
mov ebx, dword [esp + 0x50]
cmp eax, ebx
jae 0x497d82
movzx edi, byte [ecx + eax]
xchg edi, eax
mov byte [esp + 0x21], al
xchg edi, eax
xchg edi, eax
shr al, 4
xchg edi, eax
xchg edi, eax
movzx eax, al
xchg edi, eax
mov ebx, dword [esp + 0x5c]
cmp edi, ebx
jae 0x497d74
mov ecx, dword [esp + 0x58]
movzx edi, byte [ecx + edi]
movzx eax, byte [esp + 0x21]
and eax, 0xf
cmp eax, ebx
jae 0x497d74
lea ebx, [edx + 2]
movzx eax, byte [ecx + eax]
cmp ebx, ebp
jle 0x497a4f
mov dword [esp + 0x2c], edx
xchg edi, eax
mov byte [esp + 0x23], al
xchg edi, eax
mov byte [esp + 0x22], al
lea eax, [0x5035e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00438000
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ebx, [eax + 2]
movzx eax, byte [esp + 0x22]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
movzx edi, byte [esp + 0x23]
jmp 0x497a4f
mov ebx, dword [esp + 0x48]
cmp eax, ebx
jae 0x497d7b
mov edi, dword [esp + 0x44]
movzx edi, byte [edi + eax]
mov ebx, dword [esp + 0x50]
jmp 0x497aea
mov dword [esp + 0x34], edi
mov byte [esp + 0x23], bl
lea eax, [0x5035e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
call fcn.00438000
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea edx, [eax + 2]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov eax, dword [esp + 0x28]
movzx ebx, byte [esp + 0x23]
mov edi, dword [esp + 0x34]
jmp 0x497acc
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov edx, edi
jmp 0x497ad4
mov dword [esp + 0x30], ecx
lea eax, [0x5035e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edi
call fcn.00438000
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea edi, [eax + 1]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
jmp 0x497a96
mov edi, dword [esp + 0x4c]
test edi, edi
mov edx, ecx
mov ecx, edi
jmp 0x497ad4
mov edi, dword [esp + 0x4c]
test edi, edi
mov edx, ecx
mov ecx, edi
jmp 0x497ad4
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov ecx, dword [0x5e0f70]
test ecx, ecx
jne 0x497c9d
mov dword [eax], esi
movzx eax, byte [edx + 4]
test al, al
je 0x497c89
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x497c89
movzx ebx, byte [edx + 6]
test bl, bl
jne 0x497c8d
add esp, 0x3c
ret
sub eax, ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00496740
jmp 0x497c89
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.0040df80
mov edx, dword [esp + 0x40]
jmp 0x497c6e
mov byte [esp + 0x23], al
mov dword [esp + 0x2c], edi
lea eax, [0x5035e0]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
call fcn.00438000
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea ecx, [eax + 2]
movzx eax, byte [esp + 0x23]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
jmp 0x497a43
mov ecx, edi
jmp 0x497a4b
sub ebp, ecx
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.00496740
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
jmp 0x497a0c
mov ebp, ebx
mov ebx, ecx
mov ecx, ebp
jmp 0x4979e1
movzx ebp, byte [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x497d3c
add ebx, 2
mov ebp, ebx
mov ebx, ecx
mov ecx, ebp
jmp 0x4979e5
movzx eax, byte [edx + 4]
test al, al
jne 0x497d53
add esp, 0x3c
ret
mov eax, dword [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.00496740
jmp 0x497d4f
mov ebx, ecx
jmp 0x4979b4
mov ecx, dword [esp + 0x48]
jmp 0x497999
call fcn.00425280
ud2
call fcn.00425280
ud2
call fcn.00425280
ud2
call fcn.00425280
ud2
call fcn.00425280
ud2
call fcn.00449fd0
jmp fcn.00497970