Function at 0x497c20
Capabilities:
Enumerate pe sections
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x238
push 0
push ebx
mov dword [ebp - 0x2c], eax
call fcn.00595760
mov edi, dword [esi]
lea eax, [edi + 0x1000]
push eax
call fcn.00593e38
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x497c7a
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
push dword [eax]
push edi
push 1
push esi
call fcn.00595b79
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
push dword [eax]
call fcn.00595867
add esp, 0x14
test eax, eax
jne 0x4983ae
mov eax, dword [ebp - 0x2c]
push dword [eax]
call fcn.0059588d
add esp, 4
test eax, eax
jne 0x4983ae
cmp dword [ebp - 0x28], edi
jl 0x4983ae
mov ax, word [esi]
push 2
push 0x5db180
push ebx
mov word [ebx], ax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x497cee
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
movq xmm0, qword [esi + 2]
lea ecx, [ebx + 0x11c]
movq qword [ebx + 2], xmm0
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
movq xmm0, qword [esi + 0xc]
movq qword [ebx + 0xc], xmm0
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
movzx eax, word [esi + 0x18]
mov word [ebx + 0x18], ax
movdqu xmm0, xmmword [esi + 0x1a]
push 6
push str.999998
movdqu xmmword [ebx + 0x1a], xmm0
movzx eax, byte [esi + 0x2a]
mov byte [ebx + 0x2a], al
movdqu xmm0, xmmword [esi + 0x2b]
push ecx
movdqu xmmword [ebx + 0x2b], xmm0
movdqu xmm0, xmmword [esi + 0x3b]
movdqu xmmword [ebx + 0x3b], xmm0
movdqu xmm0, xmmword [esi + 0x4b]
movdqu xmmword [ebx + 0x4b], xmm0
movdqu xmm0, xmmword [esi + 0x5b]
movdqu xmmword [ebx + 0x5b], xmm0
movdqu xmm0, xmmword [esi + 0x6b]
movdqu xmmword [ebx + 0x6b], xmm0
movzx eax, byte [esi + 0x7b]
mov byte [ebx + 0x7b], al
movdqu xmm0, xmmword [esi + 0x7c]
movdqu xmmword [ebx + 0x7c], xmm0
movdqu xmm0, xmmword [esi + 0x8c]
movdqu xmmword [ebx + 0x8c], xmm0
movq xmm0, qword [esi + 0x9c]
movq qword [ebx + 0x9c], xmm0
movdqu xmm0, xmmword [esi + 0xa4]
movdqu xmmword [ebx + 0xa4], xmm0
movdqu xmm0, xmmword [esi + 0xb4]
movdqu xmmword [ebx + 0xb4], xmm0
movq xmm0, qword [esi + 0xc4]
movq qword [ebx + 0xc4], xmm0
movdqu xmm0, xmmword [esi + 0xcc]
movdqu xmmword [ebx + 0xcc], xmm0
movdqu xmm0, xmmword [esi + 0xdc]
movdqu xmmword [ebx + 0xdc], xmm0
movq xmm0, qword [esi + 0xec]
movq qword [ebx + 0xec], xmm0
movdqu xmm0, xmmword [esi + 0xf4]
movdqu xmmword [ebx + 0xf4], xmm0
mov eax, dword [esi + 0x104]
mov dword [ebx + 0x104], eax
movdqu xmm0, xmmword [esi + 0x108]
movdqu xmmword [ebx + 0x108], xmm0
mov eax, dword [esi + 0x118]
mov dword [ebx + 0x118], eax
mov eax, dword [esi + 0x11c]
mov dword [ecx], eax
movzx eax, word [esi + 0x120]
add esi, 0x122
mov word [ecx + 4], ax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x497e80
movdqu xmm0, xmmword [esi]
movdqu xmmword [ebx + 0x122], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebx + 0x132], xmm0
movq xmm0, qword [esi + 0x20]
add esi, 0x28
movq qword [ebx + 0x142], xmm0
movzx eax, byte [esi]
mov byte [ebx + 0x14a], al
movdqu xmm0, xmmword [esi + 1]
movdqu xmmword [ebx + 0x14b], xmm0
movdqu xmm0, xmmword [esi + 0x11]
movdqu xmmword [ebx + 0x15b], xmm0
movq xmm0, qword [esi + 0x21]
movq qword [ebx + 0x16b], xmm0
movzx eax, word [esi + 0x29]
mov word [ebx + 0x173], ax
mov eax, dword [esi + 0x2b]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x2f]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1c], 0
call fcn.00593e1b
mov dword [ebx + 0x178], eax
mov eax, dword [esi + 0x33]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x37]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1c], 0
call fcn.00593e1b
mov dword [ebx + 0x17c], eax
movzx eax, word [esi + 0x3b]
mov word [ebx + 0x180], ax
movzx eax, byte [esi + 0x3d]
mov byte [ebx + 0x182], al
mov eax, dword [esi + 0x3e]
mov dword [ebx + 0x183], eax
mov eax, dword [esi + 0x42]
mov dword [ebx + 0x187], eax
mov eax, dword [esi + 0x46]
mov dword [ebx + 0x18b], eax
mov eax, dword [esi + 0x4a]
mov dword [ebx + 0x18f], eax
movzx eax, word [esi + 0x4e]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x22], 0
call fcn.00593e1b
mov dword [ebx + 0x194], eax
add esp, 0xc
movzx eax, byte [esi + 0x50]
mov byte [ebx + 0x198], al
movzx eax, byte [esi + 0x51]
add esi, 0x52
mov byte [ebx + 0x199], al
cmp al, 0x4e
je 0x497faa
movdqu xmm0, xmmword [esi]
movdqu xmmword [ebx + 0x19a], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebx + 0x1aa], xmm0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [ebx + 0x1ba], xmm0
movq xmm0, qword [esi + 0x30]
movq qword [ebx + 0x1ca], xmm0
mov eax, dword [esi + 0x38]
add esi, 0x3c
mov dword [ebx + 0x1d2], eax
mov al, byte [esi]
inc esi
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x23], 0
call fcn.00593e1b
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebx + 0x1d8], eax
test eax, eax
je 0x498042
lea ecx, [eax + eax*4]
shl ecx, 4
lea edi, [ebx + 0x1dc]
push ecx
call fcn.00593e38
mov dword [edi], eax
add esp, 4
xor eax, eax
cmp dword [ebp - 0x28], eax
jle 0x498042
jmp 0x497ff0
movdqu xmm0, xmmword [esi]
inc eax
lea edi, [edi + 0x140]
movdqu xmmword [edi - 0x140], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi - 0x130], xmm0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [edi - 0x120], xmm0
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmmword [edi - 0x110], xmm0
movdqu xmm0, xmmword [esi + 0x40]
add esi, 0x50
movdqu xmmword [edi - 0x100], xmm0
cmp eax, dword [ebx + 0x1d8]
jl 0x497ff0
mov ax, word [esi]
lea edi, [ebx + 0x1e0]
push 2
push 0x5db18c
push edi
mov word [edi], ax
add esi, 2
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x498084
push 2
push 0x5db190
push edi
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x498084
mov eax, dword [esi]
add esi, 4
mov dword [ebx + 0x1e2], eax
mov al, byte [esi]
inc esi
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x23], 0
call fcn.00593e1b
mov edi, eax
add esp, 4
mov dword [ebx + 0x1e8], edi
test edi, edi
je 0x4981a6
lea ecx, [edi + edi*2]
shl ecx, 3
push ecx
call fcn.00593e38
add esp, 4
mov dword [ebx + 0x1ec], eax
mov dword [ebp - 0x2c], 0
test edi, edi
jle 0x4981a6
xor edi, edi
mov dword [ebp - 0x28], edi
mov ecx, dword [ebx + 0x1ec]
movzx eax, word [esi]
mov word [edi + ecx], ax
mov ecx, dword [ebx + 0x1ec]
mov eax, dword [esi + 2]
mov dword [ecx + edi + 2], eax
movzx eax, word [esi + 6]
mov word [ecx + edi + 6], ax
mov ecx, dword [ebx + 0x1ec]
movzx eax, byte [esi + 8]
mov byte [ecx + edi + 8], al
movzx eax, word [esi + 9]
mov ecx, dword [ebx + 0x1ec]
mov word [ecx + edi + 9], ax
movzx eax, byte [esi + 0xb]
mov byte [ecx + edi + 0xb], al
movzx eax, byte [esi + 0xc]
add esi, 0xd
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x23], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1ec]
add esp, 4
mov dword [ecx + edi + 0xc], eax
mov eax, dword [ebx + 0x1ec]
cmp dword [eax + edi + 0xc], 0
je 0x49818d
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov al, byte [esi + 4]
add esi, 5
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1f], 0
call fcn.00593e1b
mov ecx, dword [ebx + 0x1ec]
mov dword [ecx + edi + 0x10], eax
add edi, dword [ebx + 0x1ec]
mov eax, dword [edi + 0x10]
imul eax, dword [edi + 0xc]
push eax
call fcn.00593e38
mov dword [edi + 0x14], eax
add esp, 8
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add edi, 0x18
inc eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebx + 0x1e8]
jl 0x4980d3
movzx eax, byte [esi]
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x23], 0
call fcn.00593e1b
mov dword [ebx + 0x1f0], eax
movzx eax, byte [esi + 1]
mov byte [ebx + 0x1f4], al
mov eax, dword [esi + 2]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x20], 0
call fcn.00593e1b
mov dword [ebx + 0x1f8], eax
mov eax, dword [esi + 6]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x20], 0
call fcn.00593e1b
mov dword [ebx + 0x1fc], eax
mov eax, dword [esi + 0xa]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x20], 0
call fcn.00593e1b
mov dword [ebx + 0x200], eax
mov eax, dword [esi + 0xe]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x20], 0
call fcn.00593e1b
mov dword [ebx + 0x204], eax
movzx eax, word [esi + 0x12]
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x22], 0
call fcn.00593e1b
mov dword [ebx + 0x208], eax
movzx eax, word [esi + 0x14]
mov word [ebp - 0x24], ax
movzx eax, byte [esi + 0x16]
mov byte [ebp - 0x22], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x21], 0
call fcn.00593e1b
mov dword [ebx + 0x20c], eax
movzx eax, word [esi + 0x17]
mov word [ebp - 0x24], ax
movzx eax, byte [esi + 0x19]
mov byte [ebp - 0x22], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x21], 0
call fcn.00593e1b
mov dword [ebx + 0x210], eax
mov eax, dword [esi + 0x1a]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x1e]
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1f], 0
call fcn.00593e1b
mov dword [ebx + 0x214], eax
mov eax, dword [esi + 0x1f]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x23]
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1f], 0
call fcn.00593e1b
mov dword [ebx + 0x218], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x21c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], eax
movzx eax, byte [esi + 0x2c]
add esi, 0x2d
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1f], 0
call fcn.00593e1b
add esp, 0x2c
mov dword [ebx + 0x220], eax
test eax, eax
je 0x498336
mov ax, word [esi]
mov word [ebp - 0x24], ax
mov al, byte [esi + 2]
add esi, 3
mov byte [ebp - 0x22], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x21], 0
call fcn.00593e1b
push dword [ebx + 0x220]
mov dword [ebx + 0x224], eax
call fcn.00593e38
add esp, 8
mov dword [ebx + 0x228], eax
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov al, byte [esi + 4]
mov byte [ebp - 0x20], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1f], 0
call fcn.00593e1b
add esp, 4
mov dword [ebx + 0x22c], eax
test eax, eax
je 0x498390
mov ax, word [esi + 5]
mov word [ebp - 0x24], ax
mov al, byte [esi + 7]
mov byte [ebp - 0x22], al
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x21], 0
call fcn.00593e1b
push dword [ebx + 0x22c]
mov dword [ebx + 0x230], eax
call fcn.00593e38
add esp, 8
mov dword [ebx + 0x234], eax
push dword [ebp - 0x30]
call fcn.00592c4b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
call fcn.00592c4b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 2
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret