Function at 0x4467a0
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 [0x540010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x10], 0
je 0x446838
mov edi, ecx
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x4467c8
mov eax, dword [edi]
sub esp, 0x1c
movdqa xmm0, xmmword [0x525310]
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 0x446834
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp esi, 0xffffffff
je 0x446830
call fcn.00492150
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [esi + 1]
cmp eax, 2
jae 0x446853
cmp eax, 2
jb 0x44683a
call fcn.00492150
push esi
call fcn.0047b600
add esp, 4
jmp 0x44683a
xor esi, esi
jmp 0x44680a
xor esi, esi
jmp 0x446811
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0685
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.00447ca0
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.00447d40
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 0x446b5a
xor esi, esi
mov dword [ebp - 0xec], 0
xor ebx, ebx
jmp 0x446a71
test eax, eax
je 0x446f8e
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 0x44695a
mov ecx, dword [ebp - 0x60]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x446f98
mov dword [ebp - 0x60], eax
push eax
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x446986
mov ecx, dword [ebp - 0x94]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x446f98
mov dword [ebp - 0x94], eax
push eax
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4469b2
mov ecx, dword [ebp - 0xc8]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x446f98
mov dword [ebp - 0xc8], eax
push eax
call fcn.004dfb35
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jae 0x4469dd
test eax, eax
je 0x446f8e
mov dword [eax + 4], esi
mov dword [eax], esi
add eax, 8
jmp 0x4469e9
mov esi, dword [edi + 8]
cmp dword [esi], edi
mov edi, esi
jne 0x4469d2
jmp 0x446a48
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.004480b0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x80], eax
mov esi, dword [ebp - 0xec]
je 0x446b44
mov dword [eax - 8], esi
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x446b44
mov edx, dword [ebp - 0x7c]
cmp dword [ebp - 0x80], edx
je 0x446b44
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 0x446b44
mov edx, dword [edi + 4]
test edx, edx
je 0x4469d2
mov esi, edx
mov edx, dword [edx]
test edx, edx
jne 0x446a40
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 0x446b5a
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00447bf0
add esp, 8
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00447bf0
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 0x4468e0
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x64]
push eax
call fcn.00447ee0
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
test ecx, ecx
je 0x446937
mov eax, dword [ebp - 0x54]
mov edx, eax
sub edx, ecx
dec eax
cmp edx, eax
ja 0x446f98
mov dword [ebp - 0x54], ecx
push ecx
call fcn.004dfb35
add esp, 4
jmp 0x446937
push str....._third_partylibc_srcinclude_vector:621:_assertion__empty___failed:_back___called_on_an_empty_vector_n
jmp 0x446b50
push str....._third_partylibc_srcinclude_vector:1393:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x521354
call fcn.0044d640
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 0x446b4b
js 0x44714f
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.004dfb05
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 0x446f8e
mov byte [ecx], 0
inc eax
cmp esi, eax
jne 0x446bb7
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 0x446b4b
mov eax, dword [ebp - 0xf0]
mov dword [edx + 0x34], eax
cmp esi, 0x38
jbe 0x446b4b
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
cmp edi, eax
je 0x446b4b
sub edi, eax
mov dword [ebp - 0xf8], edx
add edx, 0x38
push edi
push eax
push edx
call fcn.004e3510
add esp, 0xc
cmp dword [ebp - 0xf0], 0
je 0x446d24
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 0x446b4b
mov dword [ebp - 0xec], edx
mov edx, dword [ebp - 0xf8]
sub ebx, edx
cmp ebx, edi
jbe 0x446b4b
mov ecx, dword [eax + esi]
mov ebx, dword [eax + esi + 4]
cmp ebx, ecx
je 0x446b4b
sub ebx, ecx
add edx, edi
push ebx
push ecx
push edx
call fcn.004e3510
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 0x446b4b
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 0x446b4b
mov ecx, dword [eax + esi + 0xc]
mov edi, dword [eax + esi + 0x10]
cmp edi, ecx
je 0x446b4b
sub edi, ecx
mov dword [ebp - 0xf8], edx
lea eax, [edx + ebx]
push edi
push ecx
push eax
call fcn.004e3510
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 0x446c4c
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 0x446b4b
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 [0x53a380]
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 0x446e62
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 0x446e62
cmp dword [ebp - 0x64], 0x20
jne 0x446e62
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 0x446e33
xor esi, esi
xor ebx, ebx
jmp 0x446f2b
xor ebx, ebx
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x446e62
mov ecx, dword [ebp - 0xd4]
cmp ecx, eax
je 0x446e53
add ecx, 0xfffffff4
jne 0x446e45
jmp 0x446f98
mov dword [ebp - 0xd4], eax
push eax
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x446e88
mov ecx, dword [ebp - 0x94]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x446f98
push eax
call fcn.004dfb35
add esp, 4
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x446ec3
mov edi, dword [ebp - 0x88]
mov eax, esi
cmp edi, esi
je 0x446eb4
add edi, 0xffffffe8
push edi
call fcn.00447e80
add esp, 4
cmp edi, esi
jne 0x446e9e
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], esi
push eax
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x80]
test eax, eax
mov esi, dword [ebp - 0xf4]
je 0x446eed
mov ecx, dword [ebp - 0x7c]
cmp ecx, eax
je 0x446ee1
add ecx, 0xfffffff8
jne 0x446ed3
jmp 0x446f98
mov dword [ebp - 0x7c], eax
push eax
call fcn.004dfb35
add esp, 4
mov eax, dword [ebp - 0x100]
jmp 0x44681b
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0xe4]
push eax
call fcn.004481a0
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xe4], 0x43500001
jne 0x446f22
mov esi, dword [ebp - 0xdc]
inc edi
cmp edi, dword [ebp - 0xc4]
jae 0x446fa2
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 0x446e35
cmp dword [ebp - 0x64], 0xc
jne 0x446e35
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xd0]
jae 0x446ef8
test eax, eax
je 0x446f8e
mov ecx, dword [ebp - 0xdc]
mov dword [eax + 8], ecx
movq xmm0, qword [ebp - 0xe4]
movq qword [eax], xmm0
add eax, 0xc
jmp 0x446f0a
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
jmp 0x446b50
push str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
jmp 0x446b50
xor ebx, ebx
test esi, esi
je 0x446e35
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 0x446e35
cmp dword [ebp - 0x68], 0x34
jne 0x446e35
cmp dword [ebp - 0x3c], 0x34
jne 0x446e35
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 0x446e35
cmp dword [ebp - 0x68], 0x34
jne 0x446e35
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 0x446e35
cmp dword [ebp - 0x68], 4
jne 0x446e35
mov eax, dword [ebp - 0xf0]
cmp dword [ebp - 0xe8], eax
jne 0x446e35
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], eax
je 0x446b4b
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 0x446e35
cmp dword [ebp - 0x68], edi
jne 0x446e35
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
cmp ecx, edx
je 0x44714a
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 0x4470e7
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 0x446b4b
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 0x446e35
add eax, 4
jmp 0x4470ff
lea ecx, [ebp - 0x98]
call fcn.00416ce0
int3