Function at 0x5e16c0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637fe2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x20c], 0
mov byte [ebp - 0x20d], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5e1756
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x5e177a
cmp dword [ebp - 0x218], eax
je 0x5e17a7
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x214]
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x21c], eax
lea eax, [edi + edi]
mov dword [ebp - 0x214], eax
inc eax
push 0x6d7ed0
push eax
call fcn.0062ff25
mov ecx, eax
add esp, 8
mov dword [ebp - 0x20c], ecx
test ecx, ecx
jne 0x5e17d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5e23a8
lea eax, [edi*2 + 1]
push eax
push 0
push ecx
call fcn.005feb40
add esp, 0xc
xor esi, esi
test edi, edi
je 0x5e1829
mov edi, dword [ebp - 0x20c]
nop word [eax + eax]
mov eax, dword [ebp - 0x220]
movzx eax, byte [eax + esi]
push eax
push 0x6acbec
push 2
push 3
push edi
call fcn.005e2870
inc esi
add esp, 0x14
add edi, 2
cmp esi, dword [ebp - 0x22c]
jb 0x5e1800
mov edi, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x214]
mov byte [eax + edi], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push 9
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 1
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0xf
mov byte [ebp - 0x118], 0
mov dword [ebp - 0x20c], 1
call fcn.00478140
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x118]
push eax
call fcn.00417520
push 9
push str._Profile_
lea ecx, [ebp - 0x118]
call fcn.00417520
push 2
push 0x6a4690
lea ecx, [ebp - 0x118]
call fcn.00417520
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x20c], 3
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1a8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x198], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 7
push str.config1
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], 2
call fcn.00417520
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x20c], 7
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x190], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x180], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x646ab8
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 3
call fcn.00417520
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x20c], 0xf
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x178], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x168], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, edi
mov byte [ebp - 4], 4
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e19d0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x178]
call fcn.00417520
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x20c], 0x1f
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x160], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x150], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x6a4690
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 5
call fcn.00417520
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x20c], 0x3f
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x138], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 7
push str.config2
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 6
call fcn.00417520
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x20c], 0x7f
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x130], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x120], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x646ab8
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 7
call fcn.00417520
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x20c], 0xff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x208], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1f8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x228]
mov ecx, edx
mov byte [ebp - 4], 8
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e1b50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x208]
call fcn.00417520
mov dword [ebp - 0x1e0], 0
mov dword [ebp - 0x1dc], 0
mov dword [ebp - 0x20c], 0x1ff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1f0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1e0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x6a4690
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 9
call fcn.00417520
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x20c], 0x3ff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1d8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 7
push str.config3
lea ecx, [ebp - 0x1d8]
mov byte [ebp - 4], 0xa
call fcn.00417520
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x20c], 0x7ff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1c0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1b0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x646ab8
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 0xb
call fcn.00417520
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x20c], 0xfff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov esi, dword [ebp - 0x224]
mov ecx, esi
mov byte [ebp - 4], 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e1cd0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0xb8]
call fcn.00417520
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x20c], 0x1fff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x6a4690
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 0xd
call fcn.00417520
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x20c], 0x3fff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xe8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xd8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 7
push str.config4
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 0xe
call fcn.00417520
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0x20c], 0x7fff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x100], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 1
push 0x646ab8
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0xf
call fcn.00417520
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x20c], 0xffff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov esi, dword [ebp - 0x234]
mov ecx, esi
mov byte [ebp - 4], 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5e1e43
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00417520
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20c], 0x1ffff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x6a4690
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x11
call fcn.00417520
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x20c], 0x3ffff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 7
push str.config5
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x12
call fcn.00417520
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x20c], 0x7ffff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x692030
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0x13
call fcn.00417520
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x20c], 0xfffff
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push 2
push 0x6a4690
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x14
call fcn.00417520
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x238], xmm1
movups xmmword [ebp - 0x248], xmm0
cmp edx, 0x10
jb 0x5e200a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e1ff1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23c5
push edx
push ecx
call fcn.005c385c
movups xmm0, xmmword [ebp - 0x248]
add esp, 8
movq xmm1, qword [ebp - 0x238]
mov edx, dword [ebp - 0x5c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 0x10
jb 0x5e2047
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e203d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23ca
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x5e2090
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e2086
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23cf
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x5e20df
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e20d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23d4
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
mov byte [ebp - 0xa0], 0
cmp edx, 0x10
jb 0x5e212e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e2124
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23d9
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x5e2174
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e216a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23de
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0xec]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x5e21c0
mov ecx, dword [ebp - 0x100]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e21b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23e3
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0xf
mov byte [ebp - 0x100], 0
cmp edx, 0x10
jb 0x5e2215
mov ecx, dword [ebp - 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e220b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23e8
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
cmp edx, 0x10
jb 0x5e226a
mov ecx, dword [ebp - 0xd0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e2260
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23ed
push edx
push ecx
call fcn.005c385c
add esp, 8
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
cmp edx, 0x10
jb 0x5e22bf
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5e22b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5e23f2
push edx
push ecx
call fcn.005c385c
add esp, 8
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
call fcn.00417a20
lea ecx, [ebp - 0x1d8]
call fcn.00417a20
lea ecx, [ebp - 0x1f0]
call fcn.00417a20
lea ecx, [ebp - 0x208]
call fcn.00417a20
lea ecx, [ebp - 0x130]
call fcn.00417a20
lea ecx, [ebp - 0x148]
call fcn.00417a20
lea ecx, [ebp - 0x160]
call fcn.00417a20
lea ecx, [ebp - 0x178]
call fcn.00417a20
lea ecx, [ebp - 0x190]
call fcn.00417a20
lea ecx, [ebp - 0x1a8]
call fcn.00417a20
lea ecx, [ebp - 0x118]
call fcn.00417a20
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x230]
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x230], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 0x20d], 0
je 0x5e2397
cmp esi, 0xffffffff
je 0x5e2397
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.005c3e37
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00417a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
call fcn.00606fc9
int3