Function at 0x41c780
Capabilities:
Write file on windows

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22e]
push ebx
sub esp, 0x26c
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x11a]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], pe_nt_image_headers32
mov byte [ebp - 0x230], 0
mov dword [ebp - method.g.virtual_0], vtable.g.0
mov word [ebp - 0x22e], dx
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], pe_nt_image_headers32
mov byte [ebp - 0x11c], 0
mov dword [ebp - method.g.virtual_0], vtable.g.0
mov word [ebp - 0x11a], cx
call fcn.0043f730
mov ebx, eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x240]
mov dword [esi], 1
mov dword [eax], 1
mov dword [esp + 8], 0x8310e0
mov dword [esp + 4], str._sinstall64.exe
mov dword [esp], edi
call fcn.00403910
mov eax, dword [ebp - 0x238]
mov ecx, 0x8534b8
mov dword [esp], eax
call fcn.0043fab0
sub esp, 4
test al, al
jne 0x41c918
mov dword [esp], 0x8310e0
call fcn.004406d0
mov dword [esp + 8], 0x8310e0
mov dword [esp + 4], str.Dir:___S__n
mov dword [esp], 0x833180
call fcn.0041ee70
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], 0x71bbb2
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov dword [ebp - 0x24c], eax
test eax, eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], eax
je 0x41caf4
mov dword [esp + 4], str.Created__S_n
mov dword [esp], 0x833180
call fcn.0041ee70
lea eax, [ebp - 0x244]
mov dword [esp], 0xd1
mov dword [esp + 8], eax
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
call fcn.0043f990
mov eax, dword [ebp - 0x24c]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x244]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x248]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ecx, 0x833180
mov dword [0x8310c4], 1
call fcn.0041e7c0
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], 0x41bf70
call dword [eax + 8]
sub esp, 8
test byte [0x8511c0], 0x40
je 0x41cab0
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
sub esp, 4
test eax, eax
je 0x41cae7
test byte [0x8511c0], 0x40
jne 0x41c993
cmp eax, 0xe0000235
je 0x41c9f4
mov eax, dword [0x70b368]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0x120]
test eax, eax
jne 0x41c9f4
mov eax, dword [ebx]
mov dword [0x8310c4], 0
mov ecx, ebx
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [esi], 1
je 0x41cb10
mov eax, dword [ebp - 0x128]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x41c9d0
mov dword [esp], eax
call fcn.006e9860
mov eax, dword [ebp - 0x23c]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x41c9ec
mov dword [esp], eax
call fcn.006e9860
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], str.__s____s_
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x12c]
mov dword [esp], eax
call fcn.00403910
mov dword [esp + 8], 0x8310e0
mov dword [esp + 4], str._sinstall64.exe
mov dword [esp], edi
call fcn.00403910
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], str._S__S_n
mov dword [esp], 0x833180
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], eax
call fcn.0041ee70
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 1
mov ecx, 0x8534b8
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x238]
mov dword [esp], eax
call fcn.004408c0
mov edx, eax
sub esp, 0x10
mov dword [esi], eax
and edx, 0x7fffffff
cmp edx, 1
jne 0x41c993
mov edx, dword [ebp + 0x14]
shr eax, 0x1f
mov dword [edx], eax
and dword [esi], 0x7fffffff
jmp 0x41c993
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [0x851238]
mov dword [esp], eax
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
sub esp, 0x14
test eax, eax
mov dword [esi], eax
jne 0x41c96c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x41c96c
mov dword [esp + 4], str.Failed_to_create__S_n
mov dword [esp], 0x833180
call fcn.0041ee70
jmp 0x41c918
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004022d0
jmp 0x41c9b4