Function at 0x4491e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xfc
mov eax, dword [0x547008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x10], 0
je 0x449278
mov edi, ecx
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x449208
mov eax, dword [edi]
sub esp, 0x1c
movdqa xmm0, xmmword [0x52cef0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x449274
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, 0xffffffff
je 0x449270
call fcn.0049a530
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [esi + 1]
cmp eax, 2
jae 0x449293
cmp eax, 2
jb 0x44927a
call fcn.0049a530
push esi
call fcn.004844e0
add esp, 4
jmp 0x44927a
xor esi, esi
jmp 0x44924a
xor esi, esi
jmp 0x449251
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
add esp, 0xfc
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xf4], esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], ebx
movups xmm0, xmmword [edi + 0x24]
movups xmmword [ebp - 0x20], xmm0
movdqu xmm0, xmmword [edi + 0x14]
movdqu xmmword [ebp - 0x30], xmm0
mov esi, dword [edi + 0x40]
lea ecx, [ebp - 0x80]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
push esi
call fcn.0044a520
lea ecx, [ebp - 0x8c]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ebp - 0xf0], esi
push esi
call fcn.0044a5e0
mov eax, edi
mov edi, dword [edi + 0x38]
mov dword [ebp - 0x104], eax
add eax, 0x3c
mov dword [ebp - 0xf8], eax
cmp edi, eax
je 0x4495c6
xor esi, esi
mov dword [ebp - 0xec], 0
xor ebx, ebx
jmp 0x4494b1
test eax, eax
je 0x449584
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 8], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov ecx, dword [ebp - 0x58]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x14], ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
add eax, 0x18
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x44939a
mov ecx, dword [ebp - 0x60]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x449944
mov dword [ebp - 0x60], eax
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4493c6
mov ecx, dword [ebp - 0x94]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x449944
mov dword [ebp - 0x94], eax
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4493f2
mov ecx, dword [ebp - 0xc8]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x449944
mov dword [ebp - 0xc8], eax
push eax
call fcn.004e82d5
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jae 0x44941d
test eax, eax
je 0x449584
mov dword [eax + 4], esi
mov dword [eax], esi
add eax, 8
jmp 0x449429
mov esi, dword [edi + 8]
cmp dword [esi], edi
mov edi, esi
jne 0x449412
jmp 0x449488
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.0044a9e0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x80], eax
mov esi, dword [ebp - 0xec]
je 0x449597
mov dword [eax - 8], esi
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x449597
mov edx, dword [ebp - 0x7c]
cmp dword [ebp - 0x80], edx
je 0x449597
mov eax, dword [ecx - 0x14]
sub eax, dword [ecx - 0x18]
add eax, esi
mov dword [edx - 4], eax
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x449597
mov edx, dword [edi + 4]
test edx, edx
je 0x449412
mov esi, edx
mov edx, dword [edx]
test edx, edx
jne 0x449480
mov edx, dword [ecx - 8]
sub edx, dword [ecx - 0xc]
add ebx, dword [ecx - 0x14]
add ebx, edx
sub ebx, dword [ecx - 0x18]
add eax, edx
mov dword [ebp - 0xec], eax
mov edi, esi
cmp esi, dword [ebp - 0xf8]
mov esi, 0
je 0x4495c6
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0044a450
add esp, 8
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0044a450
add esp, 8
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xcc], esi
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], esi
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x84]
jb 0x449320
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x64]
push eax
call fcn.0044a800
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
test ecx, ecx
je 0x449377
mov eax, dword [ebp - 0x54]
mov edx, eax
sub edx, ecx
dec eax
cmp edx, eax
ja 0x449944
mov dword [ebp - 0x54], ecx
push ecx
call fcn.004e82d5
add esp, 4
jmp 0x449377
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x28
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
jmp 0x4495bc
push str.back___called_on_an_empty_vector
push str._empty__
push 0x278
jmp 0x4495b7
push str.vector___index_out_of_bounds
push 0x52a71f
push 0x601
push str....._third_partylibc_srcinclude_vector
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
mov eax, dword [ebp - 0xf0]
lea esi, [ebx + eax*8]
xor eax, eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
add esi, 0x38
je 0x4495a8
js 0x449bb3
mov eax, dword [ebp - 0xf0]
lea ecx, [eax*8]
mov dword [ebp - 0xfc], ecx
lea edi, [ebx + eax*8]
add edi, 4
push esi
call fcn.004e82a5
add esp, 4
mov edx, eax
mov dword [ebp - 0x98], eax
lea ebx, [eax + esi]
mov dword [ebp - 0x90], ebx
xor eax, eax
mov ecx, edx
add ecx, eax
je 0x449584
mov byte [ecx], 0
inc eax
cmp esi, eax
jne 0x449623
mov dword [ebp - 0x94], ebx
mov dword [edx], 1
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edx + 4], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
movdqu xmmword [edx + 0x14], xmm0
mov dword [edx + 0x24], edi
mov dword [edx + 0x28], 0x34
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
cmp esi, 0x34
jbe 0x4495a8
mov eax, dword [ebp - 0xf0]
mov dword [edx + 0x34], eax
cmp esi, 0x38
jbe 0x4495a8
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
cmp edi, eax
je 0x4495a8
sub edi, eax
mov dword [ebp - 0xf8], edx
add edx, 0x38
push edi
push eax
push edx
call fcn.004ebca0
add esp, 0xc
cmp dword [ebp - 0xf0], 0
je 0x449790
add edi, 0x38
xor esi, esi
xor edx, edx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp ecx, edx
jbe 0x4495a8
mov dword [ebp - 0xec], edx
mov edx, dword [ebp - 0xf8]
sub ebx, edx
cmp ebx, edi
jbe 0x4495a8
mov ecx, dword [eax + esi]
mov ebx, dword [eax + esi + 4]
cmp ebx, ecx
je 0x4495a8
sub ebx, ecx
add edx, edi
push ebx
push ecx
push edx
call fcn.004ebca0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x88]
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xaaaaaaab
cmp ecx, dword [ebp - 0xec]
jbe 0x4495a8
add ebx, edi
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x108], ecx
sub ecx, edx
cmp ecx, ebx
jbe 0x4495a8
mov ecx, dword [eax + esi + 0xc]
mov edi, dword [eax + esi + 0x10]
cmp edi, ecx
je 0x4495a8
sub edi, ecx
mov dword [ebp - 0xf8], edx
lea eax, [edx + ebx]
push edi
push ecx
push eax
call fcn.004ebca0
add esp, 0xc
add edi, ebx
mov edx, dword [ebp - 0xec]
inc edx
add esi, 0x18
cmp dword [ebp - 0xf0], edx
mov ebx, dword [ebp - 0x108]
jne 0x4496b8
xor eax, eax
dec eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 0x43500001
mov ecx, dword [ebp - 0xf8]
sub ebx, ecx
je 0x4495a8
lea eax, [ebp - 0xa4]
mov dword [eax + 8], ecx
mov dword [eax + 4], ebx
lea esi, [ebp - 0xac]
mov dword [esi], 1
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x104]
mov edi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x74]
push 0
push esi
push eax
push 0x40
mov esi, dword [ebp - 0xf4]
push esi
push dword [ebp - 0xec]
push ebx
call edi
xor ebx, ebx
test eax, eax
je 0x4498ce
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0xcc]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
lea ecx, [ebp - 0x64]
mov dword [ecx], 0xffffffff
push ebx
push ecx
push 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4498ce
cmp dword [ebp - 0x64], 0x20
jne 0x4498ce
xor edi, edi
push edi
push edi
push dword [ebp - 0xc0]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xd8], edi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xd0], edi
xor eax, eax
dec eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xc4], edi
je 0x44989f
xor esi, esi
xor ebx, ebx
jmp 0x44999f
xor ebx, ebx
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x4498ce
mov ecx, dword [ebp - 0xd4]
cmp ecx, eax
je 0x4498bf
add ecx, 0xfffffff4
jne 0x4498b1
jmp 0x449944
mov dword [ebp - 0xd4], eax
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x4498f0
mov ecx, dword [ebp - 0x94]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x449944
push eax
call fcn.004e82d5
add esp, 4
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x44992b
mov edi, dword [ebp - 0x88]
mov eax, esi
cmp edi, esi
je 0x44991c
add edi, 0xffffffe8
push edi
call fcn.0044a790
add esp, 4
cmp edi, esi
jne 0x449906
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], esi
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [ebp - 0x80]
test eax, eax
mov esi, dword [ebp - 0xf4]
je 0x449961
mov ecx, dword [ebp - 0x7c]
cmp ecx, eax
je 0x449955
add ecx, 0xfffffff8
jne 0x44993b
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
jmp 0x449590
mov dword [ebp - 0x7c], eax
push eax
call fcn.004e82d5
add esp, 4
mov eax, dword [ebp - 0x100]
jmp 0x44925b
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0xe4]
push eax
call fcn.0044aae0
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xe4], 0x43500001
jne 0x449996
mov esi, dword [ebp - 0xdc]
inc edi
cmp edi, dword [ebp - 0xc4]
jae 0x449a06
mov dword [ebp - 0x64], 0xffffffff
push 0
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4498a1
cmp dword [ebp - 0x64], 0xc
jne 0x4498a1
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xd0]
jae 0x44996c
test eax, eax
je 0x449584
mov ecx, dword [ebp - 0xdc]
mov dword [eax + 8], ecx
movq xmm0, qword [ebp - 0xe4]
movq qword [eax], xmm0
add eax, 0xc
jmp 0x44997e
xor ebx, ebx
test esi, esi
je 0x4498a1
push ebx
push ebx
mov edi, esi
push esi
mov esi, dword [ebp - 0xf4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
dec eax
mov dword [ebp - 0x34], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmmword [ebp - 0x54], xmm0
movdqu xmmword [ebp - 0x64], xmm0
lea ecx, [ebp - 0x68]
mov dword [ecx], eax
push ebx
push ecx
push 0x34
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4498a1
cmp dword [ebp - 0x68], 0x34
jne 0x4498a1
cmp dword [ebp - 0x3c], 0x34
jne 0x4498a1
lea eax, [edi + 0x34]
mov dword [ebp - 0x3c], eax
xor ebx, ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x68], 0xffffffff
push ebx
lea eax, [ebp - 0x68]
push eax
push 0x34
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4498a1
cmp dword [ebp - 0x68], 0x34
jne 0x4498a1
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xe8]
xor ecx, ecx
dec ecx
mov dword [eax], ecx
mov dword [ebp - 0x68], ecx
push ebx
lea ecx, [ebp - 0x68]
push ecx
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4498a1
cmp dword [ebp - 0x68], 4
jne 0x4498a1
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xe8], eax
jne 0x4498a1
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], eax
je 0x4495a8
mov dword [ebp - 0x68], 0xffffffff
push 0
lea ecx, [ebp - 0x68]
push ecx
mov edi, dword [ebp - 0xfc]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x4498a1
cmp dword [ebp - 0x68], edi
jne 0x4498a1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
cmp ecx, edx
je 0x449bae
mov esi, dword [ebp - 0xe8]
lea eax, [eax + esi*8]
add eax, 4
add dword [ecx], eax
add dword [ecx + 4], eax
add ecx, 8
cmp ecx, edx
jne 0x449b4b
mov eax, dword [ebp - 0x3c]
add eax, 4
mov esi, dword [ebp - 0xf4]
xor ecx, ecx
push ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], eax
je 0x4495a8
mov ecx, esi
mov esi, dword [ebp - 0xe8]
shl esi, 3
mov dword [ebp - 0x68], 0xffffffff
push 0
lea edx, [ebp - 0x68]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 0x68], esi
sete bl
and bl, al
jmp 0x4498a1
add eax, 4
jmp 0x449b63
lea ecx, [ebp - 0x98]
call fcn.004171a0
int3