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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41bbc4
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41b66e
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
jmp 0x41b699
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x80]
mov edx, dword [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 0x80]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x41bb90
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x34]
mov ecx, 1
mov edx, dword [0x41b5dc]
call fcn.00406098
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, ebx
test edi, edi
jl 0x41ba34
inc edi
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0x10], 0xd
mov edx, dword [ebp - 0x34]
lea eax, [edx + eax*4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
call fcn.00405edc
cmp eax, dword [ebp - 0xc]
jg 0x41b732
lea eax, [ebp - 0x30]
mov edx, dword [esi]
call fcn.00404fa4
mov eax, dword [ebp - 0x30]
call fcn.00405108
mov ebx, eax
cmp ebx, 1
jl 0x41b743
mov eax, dword [ebp - 0x30]
cmp word [eax + ebx*2 - 2], 0x5c
jne 0x41b72b
lea eax, [ebp - 0x30]
mov ecx, ebx
mov edx, 1
call fcn.004052f0
jmp 0x41b743
dec ebx
test ebx, ebx
jne 0x41b70f
jmp 0x41b743
lea eax, [ebp - 0x30]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
call fcn.00404fa4
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x30]
call fcn.0040bec8
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x44]
call fcn.004047dc
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41b78b
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [esi]
call fcn.004050f8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x41b7ba
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x88]
mov edx, dword [esi]
call fcn.00404a20
mov eax, dword [ebp - 0x88]
call fcn.00404c58
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41ba21
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41ba1b
imul eax, dword [ebp - 0x2c], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x41ba12
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x41ba09
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2c]
jne 0x41ba09
mov dword [ebp - 0x66], 0x4034b50
mov word [ebp - 0x62], 0x14
mov word [ebp - 0x60], 0x800
mov word [ebp - 0x5e], 8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
call fcn.0041b594
not eax
mov dword [ebp - 0x58], eax
imul eax, dword [ebp - 0x2c], 0xb
mov ecx, 0xa
xor edx, edx
div ecx
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
call fcn.0041b4a0
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.00404a58
mov word [ebp - 0x4c], ax
mov word [ebp - 0x4a], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_GetFileTime
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToLocalFileTime
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x5a]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.kernel32.dll_FileTimeToDosDateTime
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x2014b50
mov eax, dword [ebp - 0x48]
mov word [eax + 4], 0x14
mov eax, dword [ebp - 0x48]
push esi
push edi
lea edi, [eax + 6]
lea esi, [ebp - 0x62]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x48]
mov word [eax + 0x20], 0
mov eax, dword [ebp - 0x48]
mov word [eax + 0x22], 0
mov eax, dword [ebp - 0x48]
mov word [eax + 0x24], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41b934
mov eax, dword [esi]
call fcn.004050f8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x26], eax
jmp 0x41b958
lea eax, [ebp - 0x8c]
mov edx, dword [esi]
call fcn.00404a20
mov eax, dword [ebp - 0x8c]
call fcn.00404c58
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x26], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
push 0
push 0
lea ecx, [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004174cc
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x2a], edx
push 0
lea eax, [ebp - 0x20]
push eax
push 0x1e
lea eax, [ebp - 0x66]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41b9fd
cmp dword [ebp - 0x20], 0x1e
jne 0x41b9fd
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.00404a58
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.00404c58
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41b9fd
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.00404a58
cmp eax, dword [ebp - 0x20]
jne 0x41b9fd
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41b9fd
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x54]
je 0x41ba01
xor eax, eax
jmp 0x41ba03
mov al, 1
mov byte [ebp - 5], al
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LocalFree_1
push ebx
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 5], 0
je 0x41ba34
inc dword [ebp - 0xc]
add esi, 4
dec edi
jne 0x41b6dc
cmp byte [ebp - 5], 0
je 0x41ba40
cmp dword [ebp - 0x10], 0
jg 0x41ba44
xor eax, eax
jmp 0x41ba46
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x41bb46
mov dword [ebp - 0x7c], 0x6054b50
mov word [ebp - 0x78], 0
mov word [ebp - 0x76], 0
mov ax, word [ebp - 0x10]
mov word [ebp - 0x74], ax
mov word [ebp - 0x72], ax
xor eax, eax
mov dword [ebp - 0x70], eax
push 0
push 0
lea ecx, [ebp - 0x40]
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.004174cc
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x6c], eax
mov word [ebp - 0x68], 0
mov edi, dword [ebp - 0x10]
dec edi
test edi, edi
jl 0x41bb18
inc edi
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 0x34]
lea ebx, [edx + eax*4]
mov eax, dword [ebx]
call fcn.00404a58
add eax, 0x2e
add dword [ebp - 0x70], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0x2e
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41bb0c
cmp dword [ebp - 0x20], 0x2e
jne 0x41bb0c
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx]
call fcn.00404a58
push eax
mov eax, dword [ebx]
call fcn.00404c58
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41bb0c
mov eax, dword [ebx]
call fcn.00404a58
cmp eax, dword [ebp - 0x20]
je 0x41bb12
mov byte [ebp - 5], 0
jmp 0x41bb18
inc dword [ebp - 0xc]
dec edi
jne 0x41baa7
cmp byte [ebp - 5], 0
je 0x41bb3d
push 0
lea eax, [ebp - 0x20]
push eax
push 0x16
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x41bb3d
cmp dword [ebp - 0x20], 0x16
je 0x41bb41
xor eax, eax
jmp 0x41bb43
mov al, 1
mov byte [ebp - 5], al
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebp - 5], 0
jne 0x41bb90
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x41bb71
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x41bb90
lea eax, [ebp - 0x90]
mov edx, dword [ebp - 4]
call fcn.00404a20
mov eax, dword [ebp - 0x90]
call fcn.00404c58
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bbcb
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.004047ac
lea eax, [ebp - 0x34]
mov edx, dword [0x41b5dc]
call fcn.004061b8
lea eax, [ebp - 0x30]
call fcn.00404f44
ret