Function at 0x41237d
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4339ac]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
neg esi
sbb esi, esi
and esi, 0x8a0
add esi, 0x800
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
jne 0x4123c4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], ebx
je 0x412650
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], ebx
jne 0x4123ce
jmp 0x412650
mov ecx, dword [ebp + 0x14]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], ebx
push edi
lea edi, [eax + 0xa08]
cmp byte [edi], bl
je 0x412611
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0041cf90
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov edi, 0x80
jne 0x4124eb
mov dword [ebp - 0xc], edi
push edi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
cmp dword [ebp + 0xc], 1
push ebx
sete al
push edi
lea eax, [eax + eax + 2]
push eax
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4125fc
cmp dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jne 0x41253f
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push eax
call edi
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4125f3
cmp dword [ebp + 8], esi
jne 0x4125f3
push ebx
push ebx
push esi
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
mov edi, 0x100
push edi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4125f3
cmp dword [ebp + 8], edi
jne 0x4125f3
add esi, edi
mov dword [ebp - 8], esi
jmp 0x4125f3
cmp dword [ebp + 0xc], ebx
jne 0x412434
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push 0x42d0d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 1
push str.NezuVirtualUSB
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x658]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x412434
or dword [ebp - 8], 0xffffffff
jmp 0x41264f
lea ecx, [ebp + 8]
push ecx
lea edi, [esi + 0x100]
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x4125f3
mov eax, dword [0x4339ac]
push esi
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x4125f3
mov eax, dword [0x4339ac]
mov edi, 0x100
push edi
push 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], ebx
je 0x4125f3
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push esi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4125f3
cmp dword [ebp + 8], esi
jne 0x4125f3
push ebx
push ebx
push esi
push dword [ebp - 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x14]
push edi
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4125f3
cmp dword [ebp + 8], edi
jne 0x4125f3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 8], ebx
jne 0x41264f
cmp dword [ebp + 0xc], 1
jne 0x41264f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x412631
push eax
mov eax, dword [0x4339ac]
push ebx
push dword [eax]
call esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x412645
push eax
mov eax, dword [0x4339ac]
push ebx
push dword [eax]
call esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 0x10