Function at 0x414590
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45ae6c
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x478], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a4]
mov dword [esp + 0x18], eax
xor edi, edi
mov ebx, 7
mov eax, 0x4720b8
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4145f2
sub eax, edx
sar eax, 1
push eax
push 0x4720b8
lea esi, [esp + 0x5c]
call fcn.00406f20
mov dword [esp + 0x49c], edi
mov eax, 0x4722c0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414630
sub eax, edx
sar eax, 1
push eax
push 0x4722c0
lea esi, [esp + 0x40]
call fcn.00406f20
lea ecx, [esp + 0x54]
push ecx
mov edx, esi
push edx
mov byte [esp + 0x4a4], 1
call fcn.0041e390
mov ebx, 8
add esp, 8
cmp dword [esp + 0x50], ebx
mov ebp, eax
jb 0x414680
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
mov esi, 7
mov dword [esp + 0x49c], 0xffffffff
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
jb 0x4146b0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0043ef40
add esp, 4
push ebp
push str.nErrCode___d__r_n
push 0x400
lea edx, [esp + 0x98]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x70]
call fcn.0042a750
mov dword [esp + 0x49c], 2
lea eax, [esp + 0x8c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
lea edx, [eax + 2]
jmp 0x414700
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414700
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x90]
push eax
lea esi, [esp + 0x24]
call fcn.00406f20
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x78]
mov byte [esp + 0x4a4], 3
call fcn.00406d90
cmp dword [esp + 0x34], ebx
jb 0x41474c
mov edx, dword [esp + 0x20]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x88], ebx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
jae 0x41476e
lea edx, [esp + 0x74]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x4147aa
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x414780
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0x49c], 0xffffffff
cmp dword [esp + 0x88], 8
jb 0x4147cc
mov edx, dword [esp + 0x74]
push edx
call fcn.0043ef40
add esp, 4
lea eax, [ebp - 1]
cmp eax, 5
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
ja case.default.0x4147eb
jmp dword [eax*4 + 0x41486c]
mov eax, dword [esp + 0x18]
push 0x10
push 0x4602a4
push eax
push ecx
call fcn.00406c20
add esp, 4
mov ecx, 0x461ef0
mov edx, eax
call fcn.00410df0
xor eax, eax
jmp 0x414841
mov ecx, dword [esp + 0x18]
push 0x10
push 0x4602a4
push ecx
push ecx
call fcn.00406c20
add esp, 4
mov ecx, 0x461f38
mov edx, eax
call fcn.00410df0
xor eax, eax
jmp 0x414841
mov eax, 1
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.0043ef12
add esp, 0x48c
ret