Function at 0x412650
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov eax, 0x203c
push esi
push ebx
call fcn.005d34c0
sub esp, eax
mov ebx, ecx
lea esi, [esp + 0x30]
mov dword [esp + 0x2c], 0x205
mov dword [esp + 4], esi
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00411950
sub esp, 8
mov ecx, 0x8534b8
mov dword [esp], esi
call fcn.00440560
sub esp, 4
test eax, eax
je 0x412900
mov dword [esp], esi
mov dword [esp + 4], 0x71b1e0
call dword [sym.imp.msvcrt.dll__wfopen]
mov edx, dword [ebx + 0x48]
mov edi, eax
sub edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x54]
sub eax, dword [ebx + 0x50]
mov ebp, dword [ebx + 0x94]
sub ebp, dword [ebx + 0x90]
lea esi, [edx + eax + 0x34]
mov edx, dword [ebx + 0x6c]
sub edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x60]
sub eax, dword [ebx + 0x5c]
lea ecx, [esi + edx]
lea edx, [ecx + eax]
lea eax, [edx + ebp]
mov ebp, dword [ebx + 0x20]
sub ebp, dword [ebx + 0x1c]
add ebp, eax
mov dword [esp], ebp
call fcn.006e98b0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov esi, eax
mov dword [esp + 4], 3
mov dword [esp], 0x71b176
call sub.msvcrt.dll_fwrite
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x48]
sub edx, eax
mov ecx, edx
mov dword [esi], edx
mov dword [esp + 0x1c], edx
sar ecx, 2
imul ecx, ecx, 0x3e0f83e1
mov dword [esi + 4], ecx
lea ecx, [esi + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov edx, dword [ebx + 0x54]
sub edx, dword [ebx + 0x50]
mov ecx, edx
mov dword [eax], edx
mov dword [esp + 0x1c], edx
sar ecx, 4
mov dword [eax + 4], ecx
lea ecx, [eax + 8]
mov eax, dword [ebx + 0x50]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + edx]
mov ecx, dword [ebx + 0x60]
sub ecx, dword [ebx + 0x5c]
mov edx, ecx
mov dword [eax], ecx
mov dword [esp + 0x1c], ecx
sar edx, 3
imul edx, edx, 0xaaaaaaab
mov dword [eax + 4], edx
lea edx, [eax + 8]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [ebx + 0x6c]
sub edx, dword [ebx + 0x68]
add ecx, 8
mov eax, edx
mov dword [ecx - 8], edx
mov dword [esp + 0x1c], edx
sar eax, 2
imul eax, eax, 0xaaaaaaab
mov dword [ecx - 4], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x90]
add edx, ecx
mov ecx, dword [ebx + 0x94]
add edx, 8
sub ecx, eax
mov dword [edx - 8], ecx
mov dword [edx - 4], ecx
mov dword [esp + 8], ecx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [ebx + 0x10]
add edx, ecx
mov ecx, eax
mov dword [esp], edx
call fcn.00403720
sub esp, 4
test byte [0x8511c0], 2
jne 0x4128b0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call fcn.006e9860
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [ebx + 8], 1
add esp, 0x203c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebp
call fcn.006e98b0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], eax
mov dword [esp + 0x18], eax
call fcn.004040c0
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x18]
mov dword [esp], edx
call fcn.006e9860
jmp 0x41288e
mov dword [esp + 8], esi
mov dword [esp + 4], str.ERROR_in_driverpack_saveindex__:_Write_protected__S_n
mov dword [esp], 0x833180
call fcn.0041e8c0
add esp, 0x203c
pop ebx
pop esi
pop edi
pop ebp
ret