Function at 0x498320
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x498747
sub esp, 0x3c
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x49871b
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x40]
movzx ebx, byte [edx + 5]
test bl, bl
je 0x498714
mov ebx, dword [edx + 0x14]
cmp ebx, ecx
jge 0x498714
mov ecx, ebx
shl ebx, 1
test ebx, ebx
jle 0x4986f7
movzx ebp, byte [edx + 9]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4986df
movzx ebp, byte [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4986d4
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 0x4983bc
mov ebp, dword [edx + 0x10]
cmp ebp, ecx
jle 0x4983bc
movzx esi, byte [edx + 6]
xchg esi, eax
test al, al
xchg esi, eax
je 0x4986b1
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 0x4986aa
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jbe 0x498740
lea ecx, [edi + 2]
mov eax, dword [esp + 0x58]
movzx eax, byte [eax + 0x10]
cmp ecx, ebp
jg 0x49865f
mov byte [esi + edi], 0x30
mov byte [esi + edi + 1], al
xor eax, eax
jmp 0x498419
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 0x49860a
mov dword [esp + 0x28], eax
movzx edi, byte [edx + 9]
xchg edi, eax
test al, al
xchg edi, eax
je 0x4985fb
test eax, eax
jle 0x4985ec
lea edi, [ecx + 1]
cmp edi, ebp
jg 0x4985a6
mov byte [esi + ecx], 0x20
movzx ecx, byte [edx + 8]
test cl, cl
je 0x498599
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jbe 0x498739
lea edx, [edi + 2]
mov ebx, dword [esp + 0x58]
movzx ebx, byte [ebx + 0x10]
cmp edx, ebp
jg 0x49854c
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov byte [esi + edi], 0x30
mov byte [esi + edi + 1], bl
je 0x49852f
mov ebx, dword [esp + 0x50]
cmp eax, ebx
jae 0x498732
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 0x498724
mov ecx, dword [esp + 0x58]
movzx edi, byte [ecx + edi]
movzx eax, byte [esp + 0x21]
and eax, 0xf
cmp eax, ebx
jae 0x498724
lea ebx, [edx + 2]
movzx eax, byte [ecx + eax]
cmp ebx, ebp
jle 0x4983ff
mov dword [esp + 0x2c], edx
xchg edi, eax
mov byte [esp + 0x23], al
xchg edi, eax
mov byte [esp + 0x22], al
lea eax, [0x500c80]
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.00436d70
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 0x4983ff
mov ebx, dword [esp + 0x48]
cmp eax, ebx
jae 0x49872b
mov edi, dword [esp + 0x44]
movzx edi, byte [edi + eax]
mov ebx, dword [esp + 0x50]
jmp 0x49849a
mov dword [esp + 0x34], edi
mov byte [esp + 0x23], bl
lea eax, [0x500c80]
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.00436d70
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 0x49847c
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov edx, edi
jmp 0x498484
mov dword [esp + 0x30], ecx
lea eax, [0x500c80]
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.00436d70
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 0x498446
mov edi, dword [esp + 0x4c]
test edi, edi
mov edx, ecx
mov ecx, edi
jmp 0x498484
mov edi, dword [esp + 0x4c]
test edi, edi
mov edx, ecx
mov ecx, edi
jmp 0x498484
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov ecx, dword [0x5d3b70]
test ecx, ecx
jne 0x49864d
mov dword [eax], esi
movzx eax, byte [edx + 4]
test al, al
je 0x498639
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x498639
movzx ebx, byte [edx + 6]
test bl, bl
jne 0x49863d
add esp, 0x3c
ret
sub eax, ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004970f0
jmp 0x498639
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.0040d8c0
mov edx, dword [esp + 0x40]
jmp 0x49861e
mov byte [esp + 0x23], al
mov dword [esp + 0x2c], edi
lea eax, [0x500c80]
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.00436d70
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 0x4983f3
mov ecx, edi
jmp 0x4983fb
sub ebp, ecx
mov dword [esp + 4], ebp
mov dword [esp], edx
call fcn.004970f0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
jmp 0x4983bc
mov ebp, ebx
mov ebx, ecx
mov ecx, ebp
jmp 0x498391
movzx ebp, byte [edx + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4986ec
add ebx, 2
mov ebp, ebx
mov ebx, ecx
mov ecx, ebp
jmp 0x498395
movzx eax, byte [edx + 4]
test al, al
jne 0x498703
add esp, 0x3c
ret
mov eax, dword [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004970f0
jmp 0x4986ff
mov ebx, ecx
jmp 0x498364
mov ecx, dword [esp + 0x48]
jmp 0x498349
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.00424360
ud2
call fcn.004486e0
jmp fcn.00498320