Function at 0x40c920
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x422b0b
mov eax, dword fs:[0]
push eax
sub esp, 0x994
mov eax, dword [0x430898]
xor eax, esp
mov dword [esp + 0x990], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430898]
xor eax, esp
push eax
lea eax, [esp + 0x9a8]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x4306e0], bl
je 0x40cad8
mov byte [0x4306e0], bl
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x9b4], ebx
call fcn.0040c6c0
add esp, 4
test eax, eax
jne 0x40c9b5
cmp dword [esp + 0x30], 8
jb 0x40cc6f
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412f77
add esp, 4
jmp 0x40cc6f
mov eax, dword [esp + 0x1c]
mov ebp, 8
cmp dword [esp + 0x30], ebp
jae 0x40c9c8
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push edx
push eax
push 0x104
push 0x431a10
call fcn.00413922
add esp, 0x10
push str.install.log
lea ecx, [esp + 0x38]
call fcn.00404fe0
mov eax, dword [esp + 0x48]
cmp eax, 0x103
jb 0x40c9fe
mov eax, 0x103
cmp dword [esp + 0x4c], ebp
mov ecx, dword [esp + 0x38]
jae 0x40ca0c
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x104
push 0x431a10
call fcn.0041461e
add esp, 0x10
push 0x431a10
call dword [0x424200]
cmp eax, 0xffffffff
je 0x40caa1
test al, 0x10
jne 0x40caa1
push str.a_ccsUNICODE
lea eax, [esp + 0x18]
push 0x431a10
push eax
mov byte [0x431a08], 1
mov dword [esp + 0x20], ebx
call fcn.00415174
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp edx, ebx
je 0x40caa1
mov ecx, 0x13
mov esi, str._r_r_r_r_r
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x50]
movsw word es:[edi], word [esi]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ca77
sub eax, esi
push edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push 2
push ecx
call fcn.0041502c
mov edx, dword [esp + 0x24]
push edx
call fcn.00414e51
add esp, 0x14
cmp dword [esp + 0x4c], ebp
jb 0x40cab4
mov eax, dword [esp + 0x38]
push eax
call fcn.00412f77
add esp, 4
cmp dword [esp + 0x30], ebp
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], bx
jb 0x40cad8
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00412f77
add esp, 4
cmp byte [0x431a08], bl
je 0x40cc6f
push 0x431c18
call dword [0x424118]
push 0x802
lea edx, [esp + 0x1a6]
push ebx
push edx
mov word [esp + 0x1ac], bx
call fcn.004140a0
mov ecx, dword [esp + 0x9c4]
lea eax, [esp + 0x9c8]
push eax
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1b8]
push 0x400
push edx
call fcn.00414dc1
mov esi, eax
add esp, 0x20
cmp esi, ebx
jle 0x40cc64
xor eax, eax
cmp esi, ebx
lea edx, [eax + 0xd]
jle 0x40cb5e
cmp word [esp + eax*2 + 0x1a0], 0xa
jne 0x40cb57
mov word [esp + eax*2 + 0x1a0], dx
add eax, 1
cmp eax, esi
jl 0x40cb44
cmp word [esp + eax*2 + 0x19e], dx
lea ecx, [esp + eax*2 + 0x1a0]
je 0x40cb7f
mov word [ecx], dx
mov word [esp + eax*2 + 0x1a2], bx
add esi, 1
jmp 0x40cb90
cmp word [esp + eax*2 + 0x19c], dx
jne 0x40cb90
mov word [ecx - 2], bx
sub esi, 1
cmp esi, ebx
jle 0x40cc64
push str.a_ccsUNICODE
lea eax, [esp + 0x18]
push 0x431a10
push eax
mov dword [esp + 0x20], ebx
call fcn.00415174
add esp, 0xc
cmp dword [esp + 0x14], ebx
je 0x40cc64
lea ecx, [esp + 0x18]
push ecx
call dword [0x4240b0]
push 0xfe
lea edx, [esp + 0xa6]
push ebx
push edx
mov word [esp + 0xac], bx
call fcn.004140a0
movzx eax, word [esp + 0x32]
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push ecx
movzx ecx, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x34]
push ecx
push edx
push eax
push str._04d__02d__02d__02d:_02d:_02d__03d
lea ecx, [esp + 0xcc]
push 0x80
push ecx
call fcn.004145d3
add esp, 0x34
cmp eax, ebx
jge 0x40cc2d
xor eax, eax
mov edx, dword [esp + 0x14]
push edx
push eax
lea eax, [esp + 0xa8]
push 2
push eax
call fcn.0041502c
mov ecx, dword [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x1b8]
push 2
push edx
call fcn.0041502c
mov eax, dword [esp + 0x34]
push eax
call fcn.00414e51
add esp, 0x24
push 0x431c18
call dword [0x424048]
mov ecx, dword [esp + 0x9a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x990]
xor ecx, esp
call fcn.00413773
add esp, 0x9a0
ret