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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf8
mov eax, dword [0x538010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x10], 0
je 0x442860
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x442816
mov eax, dword [ecx]
mov dword [ebp - 0xf8], ecx
sub esp, 0x1c
movdqa xmm0, xmmword [0x51f990]
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 0x442867
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp edi, 0xffffffff
je 0x44286b
call fcn.00489980
jmp 0x44286d
xor ebx, ebx
jmp 0x443093
xor edi, edi
jmp 0x442874
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [edi + 1]
cmp eax, 2
jb 0x443080
mov dword [ebp - 0x104], eax
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
mov eax, dword [ebp - 0xf8]
movups xmm0, xmmword [eax + 0x24]
movups xmmword [ebp - 0x20], xmm0
movdqu xmm0, xmmword [eax + 0x14]
movdqu xmmword [ebp - 0x30], xmm0
mov esi, dword [eax + 0x40]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
test esi, esi
je 0x4428ea
cmp esi, 0x20000000
jae 0x44315c
lea eax, [esi*8]
push eax
call fcn.004d0575
add esp, 4
lea ecx, [eax + esi*8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0xf0], edi
xor eax, eax
lea ecx, [ebp - 0x8c]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ebp - 0xf4], esi
push esi
call fcn.00443db0
mov eax, dword [ebp - 0xf8]
mov esi, dword [eax + 0x38]
add eax, 0x3c
mov ebx, 0
mov dword [ebp - 0xfc], eax
cmp esi, eax
je 0x442b4a
xor edi, edi
xor ebx, ebx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00443c80
add esp, 8
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00443c80
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
xor edx, edx
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xcc], edx
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], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x84]
jae 0x442a1a
test eax, eax
je 0x4430c0
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
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], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
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], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], edx
add eax, 0x18
mov dword [ebp - 0x88], eax
jmp 0x442a3c
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x64]
push eax
call fcn.00443fa0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x442a3c
mov dword [ebp - 0x54], eax
push eax
call fcn.004d05a5
add esp, 4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x442a4f
mov dword [ebp - 0x60], eax
push eax
call fcn.004d05a5
add esp, 4
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x442a68
mov dword [ebp - 0x94], eax
push eax
call fcn.004d05a5
add esp, 4
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x442a81
mov dword [ebp - 0xc8], eax
push eax
call fcn.004d05a5
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x78]
jae 0x442aa8
test eax, eax
je 0x4430c0
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
add eax, 8
mov dword [ebp - 0x7c], eax
jmp 0x442ab7
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x64]
push eax
call fcn.004441b0
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x80], eax
je 0x4430ac
mov dword [eax - 8], edi
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x4430ac
mov edx, dword [ebp - 0x7c]
cmp dword [ebp - 0x80], edx
je 0x4430ac
mov eax, dword [ecx - 0x14]
sub eax, dword [ecx - 0x18]
add eax, edi
mov dword [edx - 4], eax
mov ecx, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], ecx
je 0x4430ac
test esi, esi
je 0x4430d3
mov edi, dword [ecx - 8]
sub edi, dword [ecx - 0xc]
add ebx, dword [ecx - 0x14]
add ebx, edi
mov dword [ebp - 0xec], ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x442b28
mov edx, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x442b1e
jmp 0x442b31
mov edx, dword [esi + 8]
cmp dword [edx], esi
mov esi, edx
jne 0x442b28
add edi, eax
mov ebx, dword [ebp - 0xec]
sub ebx, dword [ecx - 0x18]
mov esi, edx
cmp edx, dword [ebp - 0xfc]
jne 0x44292f
mov eax, dword [ebp - 0xf4]
lea edi, [ebx + eax*8]
xor ecx, ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
add edi, 0x38
je 0x443133
js 0x443151
lea ecx, [eax*8]
mov dword [ebp - 0x100], ecx
lea eax, [ebx + eax*8]
add eax, 4
mov dword [ebp - 0xec], eax
push edi
call fcn.004d0575
add esp, 4
mov esi, eax
mov dword [ebp - 0x98], eax
lea ebx, [eax + edi]
mov dword [ebp - 0x90], ebx
xor eax, eax
mov ecx, esi
add ecx, eax
je 0x4430c0
mov byte [ecx], 0
inc eax
cmp edi, eax
jne 0x442bab
mov dword [ebp - 0x94], ebx
mov dword [esi], 1
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [esi + 4], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
movdqu xmmword [esi + 0x14], xmm0
mov eax, dword [ebp - 0xec]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x34
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
cmp edi, 0x34
jbe 0x443133
mov eax, dword [ebp - 0xf4]
mov dword [esi + 0x34], eax
cmp edi, 0x38
jbe 0x443133
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
cmp edi, eax
je 0x443133
sub edi, eax
mov ecx, esi
add ecx, 0x38
push edi
push eax
push ecx
call fcn.004d3ed0
add esp, 0xc
cmp dword [ebp - 0xf4], 0
je 0x442d19
add edi, 0x38
xor esi, esi
xor ebx, ebx
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, ebx
jbe 0x443133
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
sub edx, eax
cmp edx, edi
jbe 0x443133
mov dword [ebp - 0xec], ebx
mov edx, dword [ecx + esi]
mov ebx, dword [ecx + esi + 4]
cmp ebx, edx
je 0x443133
sub ebx, edx
add eax, edi
push ebx
push edx
push eax
call fcn.004d3ed0
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 0x443133
add ebx, edi
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x94]
sub edx, ecx
cmp edx, ebx
jbe 0x443133
mov edx, dword [eax + esi + 0xc]
mov edi, dword [eax + esi + 0x10]
cmp edi, edx
je 0x443133
sub edi, edx
add ecx, ebx
push edi
push edx
push ecx
call fcn.004d3ed0
add esp, 0xc
add edi, ebx
mov ebx, dword [ebp - 0xec]
inc ebx
add esi, 0x18
cmp dword [ebp - 0xf4], ebx
jne 0x442c42
mov esi, dword [ebp - 0x98]
mov ebx, dword [ebp - 0x94]
xor eax, eax
dec eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 0x43500001
sub ebx, esi
je 0x443133
lea eax, [ebp - 0xa4]
mov dword [eax + 8], esi
mov dword [eax + 4], ebx
lea edi, [ebp - 0xac]
mov dword [edi], 1
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xf8]
mov ebx, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xec], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xfc], eax
mov ecx, ebx
call dword [section..00cfg]
lea eax, [ebp - 0x74]
push 0
push edi
push eax
push 0x40
mov edi, dword [ebp - 0xf0]
push edi
push dword [ebp - 0xec]
push dword [ebp - 0xfc]
call ebx
xor ebx, ebx
test eax, eax
je 0x44304a
push ebx
push ebx
push ebx
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44304a
cmp dword [ebp - 0x64], 0x20
jne 0x44304a
xor esi, esi
push esi
push esi
push dword [ebp - 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd0], esi
xor eax, eax
dec eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xc4], esi
je 0x443023
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x64], 0xffffffff
push 0
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xf0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443025
cmp dword [ebp - 0x64], 0xc
jne 0x443025
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xd0]
je 0x442e9c
test eax, eax
je 0x4430c0
mov ecx, dword [ebp - 0xdc]
mov dword [eax + 8], ecx
movq xmm0, qword [ebp - 0xe4]
movq qword [eax], xmm0
add eax, 0xc
mov dword [ebp - 0xd4], eax
jmp 0x442eae
lea ecx, [ebp - 0xd8]
lea eax, [ebp - 0xe4]
push eax
call fcn.00444290
cmp dword [ebp - 0xe4], 0x43500001
jne 0x442ec0
mov edi, dword [ebp - 0xdc]
inc esi
cmp esi, dword [ebp - 0xc4]
jb 0x442e32
xor ebx, ebx
test edi, edi
je 0x443025
push ebx
push ebx
mov esi, edi
push edi
mov edi, dword [ebp - 0xf0]
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443025
cmp dword [ebp - 0x68], 0x34
jne 0x443025
cmp dword [ebp - 0x3c], 0x34
jne 0x443025
lea eax, [esi + 0x34]
mov dword [ebp - 0x3c], eax
xor ebx, ebx
push ebx
push ebx
push esi
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x443025
cmp dword [ebp - 0x68], 0x34
jne 0x443025
xor ebx, ebx
push ebx
push ebx
push dword [ebp - 0x3c]
push edi
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 edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x443025
cmp dword [ebp - 0x68], 4
jne 0x443025
mov eax, dword [ebp - 0xf4]
cmp dword [ebp - 0xe8], eax
jne 0x443025
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], eax
je 0x443133
mov dword [ebp - 0x68], 0xffffffff
push 0
lea ecx, [ebp - 0x68]
push ecx
mov esi, dword [ebp - 0x100]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x443025
cmp dword [ebp - 0x68], esi
jne 0x443025
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
cmp ecx, edx
je 0x4430e9
mov edi, dword [ebp - 0xe8]
lea eax, [eax + edi*8]
add eax, 4
add dword [ecx], eax
add dword [ecx + 4], eax
add ecx, 8
cmp ecx, edx
jne 0x443006
mov eax, dword [ebp - 0x3c]
add eax, 4
mov edi, dword [ebp - 0xf0]
jmp 0x4430ec
xor ebx, ebx
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x44303e
mov dword [ebp - 0xd4], eax
push eax
call fcn.004d05a5
add esp, 4
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0xf0]
test esi, esi
je 0x443057
push esi
call fcn.004d05a5
add esp, 4
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x8c]
mov dword [ecx], eax
call fcn.004443a0
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x44307a
mov dword [ebp - 0x7c], eax
push eax
call fcn.004d05a5
add esp, 4
mov eax, dword [ebp - 0x104]
cmp eax, 2
jb 0x443093
call fcn.00489980
push edi
call fcn.00476780
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d1573
mov eax, ebx
add esp, 0xf8
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.back___called_on_an_empty_vector
push str._empty__
push 0x240
jmp 0x443142
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
jmp 0x443147
push str.node_shouldnt_be_null
push str.__x___nullptr
push 0xcf
push str....._buildtools_third_partylibc_trunkinclude__tree
jmp 0x443147
add eax, 4
xor ecx, ecx
push ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x7c], eax
je 0x443133
mov ecx, edi
mov edi, dword [ebp - 0xe8]
shl edi, 3
mov dword [ebp - 0x68], 0xffffffff
push 0
lea edx, [ebp - 0x68]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 0x68], edi
sete bl
and bl, al
jmp 0x443025
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x5b5
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.00448430
lea ecx, [ebp - 0x98]
call fcn.00417b20
lea ecx, [ebp - 0x80]
call fcn.00417b20
int3