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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
push ebx
mov ebx, dword [0x4339ac]
push esi
push edi
push dword [ebx + 0x138]
call dword [sym.imp.USER32.dll_SetCursor]
push 1
mov dword [ebp - 0x28], eax
call fcn.0040150d
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x20], eax
jle 0x407aa9
push 3
call fcn.0040150d
cmp dword [ebp + 8], 2
jge 0x407cec
push 0x118
lea eax, [ebp - 0x2a4]
push eax
mov dword [ebp - 8], esi
call fcn.0041ce10
mov eax, dword [ebx + 4]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
lea eax, [ebx + 0x140]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2a0], 0xc7
mov dword [ebp - 0x298], str.sys.cab
mov dword [ebp - 0x294], 0x42c4dc
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x2a4]
push eax
call fcn.00419fcd
mov edi, eax
cmp edi, esi
je 0x407d0e
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push 0x80
push 3
push esi
push esi
push 0xd0000000
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x407c7f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [0x4339ac]
push edi
push 8
push dword [eax]
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
lea ecx, [ebp - 0x14]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, 0xfffffff8
cmp eax, esi
mov dword [ebp - 0x10], esi
jle 0x407bd1
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov dx, word [ecx]
cmp dx, word [edi*2 + str.Z5X3Q2Y1]
jne 0x407bbe
inc edi
inc ecx
inc ecx
cmp edi, 8
jl 0x407ba9
cmp edi, 8
je 0x407bd9
inc dword [ebp - 0x10]
add dword [ebp - 0xc], 2
cmp dword [ebp - 0x10], eax
jl 0x407ba4
jmp 0x407bd4
mov edi, dword [ebp + 8]
cmp edi, 8
jne 0x407c0d
push 0x20
lea eax, [ebp - 0x18c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x18c]
push eax
mov eax, dword [ebp - 0x10]
add edi, eax
mov eax, dword [ebp - 8]
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
cmp edi, esi
je 0x407c7f
cmp dword [ebp - 4], esi
jbe 0x407c44
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
call fcn.0040595c
mov edi, eax
cmp edi, esi
je 0x407c8d
push dword [ebp - 0x18]
lea eax, [ebp - 0x14c]
push eax
call fcn.00405a31
mov edi, eax
cmp edi, esi
je 0x407c8d
xor edi, edi
inc edi
cmp dword [ebp - 4], esi
jbe 0x407c8d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x407ca3
push dword [ebp - 8]
mov eax, dword [0x4339ac]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, esi
je 0x407d0e
lea eax, [ebp - 0x3a8]
push eax
call fcn.00409d64
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0x42c4d8
push str.MAIN
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.PNP_Filter
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00419e90
mov edi, eax
cmp edi, esi
je 0x407d0e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebx + 0x3700]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call fcn.00407610
cmp dword [ebp - 0xc], esi
mov edi, eax
je 0x407d0e
call fcn.004074ba
cmp dword [ebp + 8], 1
mov eax, str.Install
je 0x407d1e
mov eax, str.UnInstall
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp edi, esi
je 0x407d3e
mov eax, str._Complete.
mov dword [ebp + 8], 0x40
jmp 0x407d4a
mov eax, str._Not_Complete.
mov dword [ebp + 8], 0x10
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp edi, esi
jne 0x407d7c
push 0x811
push dword [ebp + 8]
lea eax, [ebp - 0x14c]
push str.NezuVirtualUSB
push eax
push dword [ebx + 0x658]
call dword [sym.imp.USER32.dll_MessageBoxExA]
cmp dword [ebp - 0x20], esi
jle 0x407d88
push 2
call fcn.0040150d
call fcn.004022cd
call fcn.00415d56
call fcn.004175b3
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4