Function at 0x41cd90
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.Pg.virtual_0], vtable.Pg.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.Pg.virtual_0], vtable.Pg.0
mov word [ebp - 0x11a], cx
call fcn.00440fc0
mov ebx, eax
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x240]
mov dword [esi], 1
mov dword [eax], 1
mov dword [esp + 8], 0x8470e0
mov dword [esp + 4], str._sinstall64.exe
mov dword [esp], edi
call fcn.00403a60
mov eax, dword [ebp - 0x238]
mov ecx, 0x869458
mov dword [esp], eax
call fcn.00441540
sub esp, 4
test al, al
jne 0x41cf2a
mov dword [esp], 0x8470e0
call fcn.00441300
mov dword [esp + 8], 0x8470e0
mov dword [esp + 4], str.Dir:___S__n
mov dword [esp], 0x849160
call fcn.0041f5d0
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], 0x730c72
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfopen]
mov edx, eax
mov eax, dword [ebp - 0x238]
test edx, edx
mov dword [ebp - 0x24c], edx
mov dword [esp + 8], eax
je 0x41d110
mov dword [esp + 4], str.Created__S_n
mov dword [esp], 0x849160
call fcn.0041f5d0
lea eax, [ebp - 0x244]
mov dword [esp], 0xd1
mov dword [esp + 8], eax
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
call fcn.00441220
mov eax, dword [ebp - 0x244]
mov edx, dword [ebp - 0x24c]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x248]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov edx, dword [ebp - 0x24c]
mov dword [esp], edx
call sub.msvcrt.dll_fclose
mov ecx, 0x849160
mov dword [0x8470c4], 1
call fcn.0041eed0
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 4], 0
mov dword [esp], 0x41c5c0
call dword [eax + 8]
sub esp, 8
test byte [0x8671a0], 0x40
je 0x41d0b5
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
sub esp, 4
test eax, eax
je 0x41d0ec
test byte [0x8671a0], 0x40
jne 0x41d054
cmp eax, 0xe0000235
je 0x41cfad
mov eax, dword [0x720348]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0x120]
test eax, eax
je 0x41d054
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.00403a60
mov dword [esp + 8], 0x8470e0
mov dword [esp + 4], str._sinstall64.exe
mov dword [esp], edi
call fcn.00403a60
mov eax, dword [ebp - 0x124]
mov dword [esp + 4], str._S__S_n
mov dword [esp], 0x849160
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 8], eax
call fcn.0041f5d0
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 1
mov ecx, 0x869458
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x238]
mov dword [esp], eax
call fcn.00442260
mov edx, eax
sub esp, 0x10
mov dword [esi], eax
and edx, 0x7fffffff
cmp edx, 1
je 0x41d130
mov eax, dword [ebx]
mov dword [0x8470c4], 0
mov ecx, ebx
call dword [eax + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp dword [esi], 1
je 0x41d100
mov eax, dword [ebp - 0x128]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x41d091
mov dword [esp], eax
call fcn.006febd0
mov eax, dword [ebp - 0x23c]
mov dword [ebp - method.nInst.virtual_0], vtable.nInst.0
test eax, eax
je 0x41d0ad
mov dword [esp], eax
call fcn.006febd0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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 [0x867218]
mov dword [esp], eax
call sub.newdev.dll_UpdateDriverForPlugAndPlayDevicesW
sub esp, 0x14
test eax, eax
mov dword [esi], eax
jne 0x41cf7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x41cf7e
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402410
jmp 0x41d075
mov dword [esp + 4], str.Failed_to_create__S_n
mov dword [esp], 0x849160
call fcn.0041f5d0
jmp 0x41cf2a
mov edi, dword [ebp + 0x14]
shr eax, 0x1f
mov dword [edi], eax
and dword [esi], 0x7fffffff
jmp 0x41d054