Function at 0x4386b0
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a4ca6
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x4e4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4f4]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x20], ecx
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], edi
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push eax
mov dword [esp + 0x508], ebx
xor ebp, ebp
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x438a73
call fcn.004471e0
cmp eax, ebx
jl 0x438ba4
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x2c], esi
cmp esi, 0xffffffff
jne 0x438764
call fcn.004471e0
cmp eax, ebx
jl 0x438b6a
mov esi, dword [esp + 0x2c]
lea eax, [esi + 2]
push eax
call fcn.004848ce
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x438b6a
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
push ebp
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x438a7e
call fcn.004471e0
cmp eax, ebx
jl 0x438b6a
cmp edi, ebx
je 0x4387b1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
push esi
mov edi, ebp
lea ecx, [esp + 0x28]
call fcn.004385e0
mov byte [esp + 0x4f0], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.0046b5f0
mov edx, dword [esp + 0x24]
add eax, 0x10
mov dword [edi], eax
mov edi, dword [esp + 0x34]
push edi
push esi
push edx
call fcn.00437960
add esp, 0x10
cmp eax, ebx
jne 0x438b3f
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
cmp edi, ebx
jb 0x438825
ja 0x438810
cmp esi, ebx
jbe 0x438825
mov edi, edi
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
xor ecx, ecx
inc eax
cmp ecx, edi
jb 0x438810
ja 0x438825
cmp eax, esi
jb 0x438810
mov byte [esi + ebp], bl
mov byte [esi + ebp + 1], bl
mov eax, dword [esp + 0x24]
push eax
mov eax, SysReAllocString
mov ecx, 0x21
lea edx, [esp + 0x49a]
mov dword [esp + 0x440], 0x56554c46
mov dword [esp + 0x44c], ebx
mov dword [esp + 0x444], 0x9c
mov dword [esp + 0x448], ebx
mov dword [esp + 0x454], 1
mov dword [esp + 0x450], esi
call fcn.0046a070
cmp dword [esp + 0x444], ebx
je 0x4388a7
xor eax, eax
cmp edi, ebx
jb 0x4388a7
ja 0x438892
cmp esi, ebx
jbe 0x4388a7
mov cl, byte [eax + ebp]
not cl
mov byte [eax + ebp], cl
xor ecx, ecx
inc eax
cmp ecx, edi
jb 0x438892
ja 0x4388a7
cmp eax, esi
jb 0x438892
mov eax, dword [esp + 0x450]
cmp eax, 1
jne 0x438a94
cmp dword [0x4d1fd8], ebx
jne 0x438932
cmp dword [0x4d1fdc], ebx
jne 0x438b3f
push str.360Base.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x438926
push str.InitLibs
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x438926
push 0x400
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.0048dc10
add esp, 0xc
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], pe_nt_image_headers32
call esi
test eax, eax
jl 0x438926
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [0x4d1fd8], ecx
mov dword [0x4d1fdc], edx
cmp dword [0x4d1fd8], ebx
je 0x438b3f
cmp dword [0x4d1fdc], ebx
je 0x438b3f
mov eax, dword [esp + 0x44c]
add eax, 2
push eax
call fcn.004848ce
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x44c]
push eax
push ebp
lea ecx, [esp + 0x450]
push ecx
push edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x458], eax
call dword [0x4d1fd8]
mov edx, dword [esp + 0x448]
mov byte [edx + edi], bl
mov eax, dword [esp + 0x448]
mov byte [eax + edi + 1], bl
mov ecx, dword [esp + 0x448]
push ecx
lea ecx, [esp + 0x20]
call fcn.004385e0
mov edx, dword [esp + 0x20]
add esp, 4
push edx
mov eax, SysReAllocString
mov ecx, 0x21
lea edx, [esp + 0x458]
call fcn.0046a070
mov eax, dword [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x438a8d
call fcn.004471e0
cmp eax, ebx
jl 0x438a3a
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x9c
lea edx, [esp + 0x448]
push edx
push esi
call edi
cmp eax, ebx
jne 0x438a0e
call fcn.004471e0
mov ecx, dword [esp + 0x448]
mov edx, dword [esp + 0x28]
push ebx
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push esi
call edi
cmp eax, ebx
jne 0x438a2d
call fcn.004471e0
cmp esi, ebx
je 0x438a3a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [esp + 0x17], 1
cmp esi, ebx
je 0x438a4a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x438b3f
mov dword [esp + 0x18], eax
mov edi, eax
jmp 0x43873c
cmp dword [esp + 0x1c], esi
jne 0x438b6a
jmp 0x4387a2
mov esi, eax
jmp 0x4389e9
cmp eax, 2
je 0x438b3f
cmp eax, ebx
jne 0x438b3f
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x44c]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push edx
mov dword [esp + 0x464], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x438bd0
call fcn.004471e0
cmp eax, ebx
jl 0x438b2f
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [esp + 0x20]
push eax
push 0x9c
lea ecx, [esp + 0x448]
push ecx
push esi
call edi
cmp eax, ebx
jne 0x438b07
call fcn.004471e0
mov eax, dword [esp + 0x448]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push esi
call edi
cmp eax, ebx
jne 0x438b22
call fcn.004471e0
cmp esi, ebx
je 0x438b2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [esp + 0x17], 1
cmp esi, ebx
je 0x438b3f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x4ec], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x438b7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov edi, ebx
cmp ebp, ebx
je 0x438b88
push ebp
call fcn.0048c465
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x438b99
push eax
call fcn.0048c465
add esp, 4
cmp edi, ebx
je 0x438ba4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4e4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.0048b133
add esp, 0x4dc
ret
mov esi, eax
jmp 0x438ae2