Function at 0x429050
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x48719c]
mov dword [esp + 0x10], eax
push ebp
mov ebp, ecx
mov ecx, dword [0x4871a0]
mov dword [esp + 8], ecx
mov edx, dword [esp + 8]
cmp edx, 0x100000
mov dword [esp + 0x10], ebp
jle 0x429080
xor eax, eax
pop ebp
add esp, 0x20
ret
push ebx
push esi
push 0x200
call fcn.00447677
lea esi, [ebp + 0x210]
mov ebx, eax
mov eax, esi
add esp, 4
mov dword [esp + 0x14], esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4290a0
push edi
sub eax, edx
push esi
add eax, 1
push eax
push ebx
call fcn.004565a4
mov edi, ebx
add esp, 0xc
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4290c0
mov ax, word [0x472770]
mov word [edi], ax
lea eax, [ebp + 0x310]
mov dword [esp + 0x24], eax
mov esi, eax
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4290e0
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4290f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 2
push 3
push 0
mov ecx, eax
push 0
and ecx, 3
push 0x80000000
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x429148
test ebx, ebx
je 0x429134
push ebx
call fcn.004476a7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x20
ret
push 0x200
call fcn.00447677
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, 0x450
add esp, 4
cmp byte [eax], 0
mov dword [esp + 0x10], ebp
je 0x429218
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x429175
mov edi, ebp
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x429186
mov cx, word [0x472770]
mov word [edi], cx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4291a0
mov edi, dword [esp + 0x10]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4291b2
mov ebp, dword [esp + 0x10]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebp
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x429231
mov eax, dword [esp + 0x10]
test eax, eax
je 0x429201
push eax
call fcn.004476a7
add esp, 4
test ebx, ebx
je 0x42920e
push ebx
call fcn.004476a7
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x20
ret
push 0x200
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4291d4
test ebp, ebp
je 0x429201
push ebp
jmp 0x4291f9
mov edx, dword [esp + 0x14]
add edx, 0x20
push edx
call fcn.00447677
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0x24]
push 0
push eax
push ebp
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x429375
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 2
push 2
push 0
push 0
push 0xc0000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x429375
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, ebx
add edi, esi
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4292c0
mov ax, word [0x472770]
mov word [edi], ax
mov eax, dword [esp + 0x24]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4292e0
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4292f0
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 2
push 2
push 0
push 0
mov ecx, eax
push 0xc0000000
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429365
mov eax, dword [esp + 0x10]
test eax, eax
je 0x429336
push eax
call fcn.004476a7
add esp, 4
test ebx, ebx
je 0x429343
push ebx
call fcn.004476a7
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x429354
push eax
call fcn.004476a7
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x30]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42939e
push eax
call fcn.004476a7
add esp, 4
test ebx, ebx
je 0x4293ab
push ebx
call fcn.004476a7
add esp, 4
test edi, edi
je 0x4293b8
push edi
call fcn.004476a7
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x20
ret