Function at 0x498768
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x498771
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x499186
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0044e9fc
cmp eax, 3
jne 0x4987b2
mov eax, esi
call fcn.0044e354
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
call fcn.00404a28
jmp 0x4987bd
lea eax, [ebp - 0x10]
mov edx, dword [esi + 8]
call fcn.00404a28
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
mov eax, dword [eax + 0x26c]
call fcn.0044ee84
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, 0x49919c
call fcn.00404c9c
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
mov eax, dword [eax + 0x26c]
xor edx, edx
call fcn.0044ef08
mov dword [ebp - 0x18], eax
mov eax, dword [0x4cff70]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4cfd78]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [0x4985b4]
mov eax, 0x30
call fcn.00405914
mov esi, eax
test bl, bl
jne 0x498a03
mov eax, edi
cmp dword [eax], 0xffff0001
jne 0x49888d
mov bl, 1
mov byte [esi], 3
mov edx, dword [eax + 0xc]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
movzx edx, word [eax + 0x10]
mov dword [ebp - 4], edx
mov dx, word [eax + 0x12]
mov word [esi + 0xc], dx
mov dx, word [eax + 0x14]
mov word [esi + 0xe], dx
mov dx, word [eax + 0x16]
mov word [esi + 0x10], dx
mov dx, word [eax + 0x18]
mov word [esi + 0x12], dx
mov eax, dword [eax + 4]
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], 0
add edi, 0x1a
mov dword [ebp - 0xc], edi
jmp 0x4988d3
mov byte [esi], 2
mov edx, dword [eax]
mov dword [esi + 4], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
movzx edx, word [eax + 8]
mov dword [ebp - 4], edx
mov dx, word [eax + 0xa]
mov word [esi + 0xc], dx
mov dx, word [eax + 0xc]
mov word [esi + 0xe], dx
mov dx, word [eax + 0xe]
mov word [esi + 0x10], dx
mov ax, word [eax + 0x10]
mov word [esi + 0x12], ax
xor eax, eax
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], 0
add edi, 0x12
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x460]
call fcn.004723ac
lea ecx, [ebp - 0x30]
lea edx, [ebp - 6]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x1c]
call fcn.004049e4
movzx eax, word [ebp - 6]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x34]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x34]
lea eax, [esi + 0x20]
call fcn.004049e4
test byte [esi + 4], 0x40
je 0x4989d6
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov dword [0x4d1c7c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
cmp bl, 1
jne 0x498965
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
jmp 0x49896a
xor eax, eax
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x38]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.004723ac
lea edx, [ebp - 0x3c]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.0047237c
mov edx, dword [ebp - 0x3c]
mov eax, 0x4d1c78
call fcn.004049e4
lea edx, [ebp - 0x40]
mov eax, dword [0x4d1c7c]
call fcn.00409418
mov edx, dword [ebp - 0x40]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
call fcn.004723ac
jmp 0x498b67
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
xor edx, edx
call fcn.004723ac
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
xor edx, edx
call fcn.004723ac
jmp 0x498b67
mov eax, edi
mov byte [esi], 4
mov edx, dword [eax]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], edx
xor edx, edx
mov dl, byte [eax + 4]
mov dword [ebp - 4], edx
mov dx, word [eax + 5]
mov word [esi + 0xc], dx
mov dx, word [eax + 7]
mov word [esi + 0xe], dx
mov dx, word [eax + 9]
mov word [esi + 0x10], dx
mov dx, word [eax + 0xb]
mov word [esi + 0x12], dx
add eax, 0xd
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
mov edx, dword [ebp - 0x44]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x460]
call fcn.004723ac
lea edx, [ebp - 0x48]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x460]
call fcn.0047237c
mov eax, dword [ebp - 0x48]
call fcn.00404c50
add eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
xor eax, eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
call fcn.00404c50
add eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
mov eax, dword [esi + 0x20]
call fcn.00404c50
add eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
test byte [esi + 4], 0x40
je 0x498b3f
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov dword [0x4d1c7c], eax
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
mov edx, dword [ebp - 0x4c]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.004723ac
lea edx, [ebp - 0x50]
mov eax, dword [0x4d1c7c]
call fcn.00409418
mov edx, dword [ebp - 0x50]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
call fcn.004723ac
lea edx, [ebp - 0x54]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
call fcn.0047237c
mov eax, dword [ebp - 0x54]
call fcn.00404c50
add eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x498b67
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x444]
xor edx, edx
call fcn.004723ac
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
xor edx, edx
call fcn.004723ac
mov eax, dword [0x4cff70]
mov eax, dword [eax]
mov edx, esi
call fcn.0041a2d4
mov eax, esi
call fcn.004986d8
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
call fcn.0049a0d0
mov eax, dword [esi + 4]
call fcn.0049a404
cmp dword [ebp - 4], 0x200
jge 0x498bbc
cmp dword [ebp - 4], 0
jl 0x498bbc
cmp word [esi + 0x10], 0x1000
jge 0x498bbc
cmp word [esi + 0x10], 0
jl 0x498bbc
cmp word [esi + 0x12], 0x1000
jge 0x498bbc
cmp word [esi + 0x12], 0
jge 0x498bd0
mov edx, 0x4991b0
mov eax, 0xffffff74
call fcn.004c3580
jmp 0x499117
cmp bl, 2
je 0x498bdf
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004c2dd8
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
test eax, eax
jle 0x499088
mov dword [ebp - 0x1c], eax
mov edx, dword [0x4985b4]
mov eax, 0x30
call fcn.00405914
mov esi, eax
mov eax, ebx
sub al, 1
jb 0x498cbe
je 0x498c1b
dec al
je 0x498d42
jmp 0x498ea4
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0xc]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0xe]
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0x10]
mov word [esi + 0x10], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0x12]
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0x14]
mov word [esi + 0x14], ax
add edi, 0x18
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x58]
lea edx, [ebp - 6]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x58]
lea eax, [esi + 0x1c]
call fcn.004049e4
movzx eax, word [ebp - 6]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x5c]
lea eax, [esi + 0x20]
call fcn.004049e4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax + 0x16]
mov word [esi + 0x2c], ax
jmp 0x498ea4
mov eax, edi
mov edx, dword [eax]
mov dword [esi + 4], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov dx, word [eax + 0xa]
mov word [esi + 0xe], dx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov dx, word [eax + 0xe]
mov word [esi + 0x12], dx
mov ax, word [eax + 0x10]
mov word [esi + 0x14], ax
add edi, 0x12
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x60]
lea edx, [ebp - 6]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x60]
lea eax, [esi + 0x1c]
call fcn.004049e4
movzx eax, word [ebp - 6]
mov dword [esi + 0x18], eax
lea ecx, [ebp - 0x64]
lea edx, [ebp - 8]
lea eax, [ebp - 0xc]
call fcn.00499f48
mov edx, dword [ebp - 0x64]
lea eax, [esi + 0x20]
call fcn.004049e4
xor eax, eax
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], 0
jmp 0x498ea4
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xa]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x24]
mov ax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 2]
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 4]
mov word [esi + 0x10], ax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 6]
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov ax, word [eax + 8]
mov word [esi + 0x14], ax
add edi, 0xf
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 0xe]
mov word [ebp - 6], ax
cmp word [ebp - 6], 0x80
jb 0x498daa
cmp word [ebp - 6], 0x85
jbe 0x498dce
mov word [ebp - 6], 0
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 0x24]
add edx, 0xe
call fcn.00404b88
mov eax, dword [esi + 0x1c]
call fcn.00404c50
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x498dd6
lea eax, [esi + 0x1c]
call fcn.00404990
movzx eax, word [ebp - 6]
mov dword [esi + 0x18], eax
cmp word [ebp - 6], 0x82
jne 0x498e7d
mov eax, dword [esi + 4]
and eax, 0x1f
cmp eax, 3
je 0x498dfd
cmp eax, 0xe
jne 0x498e7d
mov edi, dword [ebp - 0xc]
cmp word [edi], 0
jne 0x498e1e
lea eax, [esi + 0x20]
mov edx, 0x4991c0
call fcn.004049e4
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x498e99
mov eax, dword [edi]
call fcn.00407a00
test ax, ax
je 0x498e48
lea eax, [esi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
mov eax, dword [esi + 0x20]
call fcn.00404c50
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
jmp 0x498e99
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
lea edx, [ebp - 0x70]
xor ecx, ecx
mov eax, 0x4991cc
call fcn.0040a420
mov edx, dword [ebp - 0x68]
lea eax, [esi + 0x20]
call fcn.004049e4
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [ebp - 0xc], eax
jmp 0x498e99
lea eax, [esi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00404b88
mov eax, dword [esi + 0x20]
call fcn.00404c50
add eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esi + 0x28], eax
mov word [esi + 0x2c], 0
cmp word [ebp - 6], 0
jne 0x498f00
push dword [esi + 0x1c]
push 0x4991d8
push dword [esi + 0x20]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404d10
mov eax, dword [esi + 0x1c]
mov edx, 0x4991e4
call fcn.00404d9c
je 0x498ef0
mov eax, dword [esi + 0x1c]
mov edx, 0x4991f8
call fcn.00404d9c
je 0x498ef0
mov eax, dword [esi + 0x1c]
mov edx, 0x49920c
call fcn.00404d9c
jne 0x498ef8
mov byte [esi], 6
jmp case.default.0x498f10
mov byte [esi], 0xa
jmp case.default.0x498f10
movzx eax, word [ebp - 6]
add eax, 0xffffff80
cmp eax, 5
ja case.default.0x498f10
jmp dword [eax*4 + 0x498f17]
mov edi, dword [esi + 4]
and edi, 0xf
cmp edi, 0xb
ja 0x498f4a
mov eax, dword [edi*4 + 0x4ce380]
call fcn.00404c50
test eax, eax
jne 0x498f4c
xor edi, edi
push dword [edi*4 + 0x4ce380]
push 0x4991d8
push dword [esi + 0x20]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404d10
lea eax, [esi + 0x1c]
mov edx, dword [edi*4 + 0x4ce380]
call fcn.004049e4
mov byte [esi], 0
jmp case.default.0x498f10
lea eax, [ebp - 0x14]
mov edx, 0x499220
call fcn.00404a28
lea eax, [esi + 0x1c]
mov edx, 0x499220
call fcn.004049e4
mov byte [esi], 5
jmp case.default.0x498f10
lea eax, [ebp - 0x14]
mov ecx, dword [esi + 0x20]
mov edx, 0x499230
call fcn.00404c9c
lea eax, [esi + 0x1c]
mov edx, 0x499244
call fcn.004049e4
mov byte [esi], 9
jmp case.default.0x498f10
lea eax, [ebp - 0x14]
mov edx, 0x499254
call fcn.00404a28
lea eax, [esi + 0x1c]
mov edx, 0x499254
call fcn.004049e4
mov byte [esi], 7
jmp case.default.0x498f10
lea eax, [ebp - 0x14]
mov edx, 0x499264
call fcn.00404a28
lea eax, [esi + 0x1c]
mov edx, 0x499264
call fcn.004049e4
mov byte [esi], 8
jmp case.default.0x498f10
lea eax, [ebp - 0x14]
mov edx, 0x499278
call fcn.00404a28
lea eax, [esi + 0x1c]
mov edx, 0x499278
call fcn.004049e4
mov byte [esi], 1
mov eax, dword [0x4cff70]
mov eax, dword [eax]
mov edx, esi
call fcn.0041a2d4
mov eax, esi
call fcn.004986d8
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
call fcn.004c34e8
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x14]
call fcn.00404a28
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.0044ef08
cmp bl, 2
je 0x49907c
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004c2dd8
mov edi, dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x498bf0
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x40c]
call fcn.00450a44
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov esi, dword [eax + 0x40c]
mov eax, dword [esi + 0x26c]
xor edx, edx
call fcn.0044f210
mov edx, eax
mov eax, dword [0x4cfc54]
mov eax, esi
call fcn.00450b80
cmp bl, 2
setne dl
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov eax, dword [eax + 0x4b0]
call fcn.0044a548
xor eax, eax
call fcn.00499284
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
mov edx, dword [eax + 0x408]
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
xor ecx, ecx
call fcn.004c82cc
push 0
push 0
push 0x464
mov eax, dword [0x4cfc54]
mov eax, dword [eax]
call fcn.00478cb0
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49918d
lea eax, [ebp - 0x74]
call fcn.00404990
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.004049b4
lea eax, [ebp - 0x54]
call fcn.00404990
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004049b4
lea eax, [ebp - 0x48]
call fcn.00404990
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004049b4
lea eax, [ebp - 0x3c]
call fcn.00404990
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.004049b4
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004049b4
ret