Function at 0x41f480
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov eax, dword [0x495fc8]
dec eax
mov dword [0x495fc8], eax
mov dword [0x498964], eax
mov eax, dword [0x494648]
add eax, 0xd5e314e9
mov dword [0x494648], eax
cmp dword [0x49d134], 0
jne 0x41f5af
mov eax, dword [0x496bbc]
not eax
mov ecx, dword [0x49c010]
mov edx, ecx
inc edx
mov dword [0x49c010], edx
sub eax, ecx
xor eax, 0x6166fe98
mov ecx, dword [0x497ecc]
sar ecx, 5
imul ecx, ecx, 0x9a3d905b
mov edx, dword [0x494520]
or ecx, edx
cmp eax, ecx
jl 0x41f550
mov eax, 0xc258c23c
mov cx, word [0x48fc44]
movsx edx, cx
xor edx, 0xffffffff
cmp eax, edx
jg 0x41f54b
mov eax, 0x9bfc5ca3
mov cx, word [0x4907aa]
mov dx, cx
inc edx
mov cx, dx
mov word [0x4907aa], cx
movsx edx, cx
xor edx, 0x37437fb1
cmp eax, edx
jne 0x41f546
jmp 0x41f546
jmp 0x41f54b
jmp 0x41f550
mov eax, 0x60fbdd66
mov dword [esp + 0x24], eax
call fcn.00449190
mov dword [0x49d134], eax
mov cx, word [0x4915c0]
mov ax, cx
dec eax
mov cx, ax
mov word [0x4915c0], cx
movsx eax, cx
and eax, 0xe3e5e0e6
mov edx, dword [esp + 0x24]
cmp edx, eax
jl 0x41f59b
mov dword [0x49c474], 0x540b2681
jmp 0x41f5aa
mov eax, dword [0x497138]
xor eax, 0x128ac004
mov dword [0x497138], eax
jmp 0x41f5af
mov eax, 0x7f402363
mov cx, word [0x4927e8]
mov dx, cx
mov esi, edx
inc esi
mov cx, si
mov word [0x4927e8], cx
mov cx, word [0x490afe]
mov si, cx
xor esi, edx
mov cx, si
mov word [0x490afe], cx
mov edx, esp
mov dword [edx + 4], 3
mov dword [edx], 0x1ab0
mov dword [esp + 0x20], eax
call fcn.0042c7c0
mov dword [esp + 0x30], eax
mov eax, dword [0x49c194]
shl eax, 3
add eax, 0xd6206d5a
mov edx, dword [esp + 0x20]
cmp edx, eax
jg 0x41f626
mov eax, dword [0x49af64]
imul eax, eax, 0xb92de6fb
mov dword [0x49af64], eax
mov eax, 0x1fed238b
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, esp
mov dword [esi + 4], ecx
mov dword [esi], edx
mov dword [esp + 0x1c], eax
call fcn.0045ae2b
mov dword [esp + 0x28], eax
mov eax, dword [0x49bfc8]
shl eax, 2
imul eax, eax, 0x437dcd9f
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jg 0x41f66b
mov dword [0x495eac], 0x59798862
mov eax, dword [esp + 0x30]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.00450bc0
mov eax, dword [0x494ea4]
xor eax, 0x934c6d77
mov ecx, dword [0x49921c]
or ecx, eax
mov dword [0x49921c], ecx
cmp dword [esp + 0x28], 0
jne 0x41f7f1
mov eax, 0x10b24e30
mov ecx, dword [0x49adf0]
mov edx, ecx
dec edx
mov dword [0x49adf0], edx
cmp eax, ecx
jne 0x41f6cd
mov eax, dword [0x4978f0]
xor eax, 0x4f89318e
mov dword [0x4978f0], eax
mov eax, 0xa1f79714
mov ecx, dword [0x48ef84]
mov edx, esp
mov dword [edx], 0x412
mov dword [esp + 0x18], eax
call ecx
sub esp, 4
mov eax, dword [0x49934c]
or eax, 0x5d833c76
mov dword [0x49934c], eax
mov eax, esp
mov dword [eax + 4], 3
mov dword [eax], 0x1ab0
call fcn.0042c7c0
mov dword [esp + 0x2c], eax
mov word [0x4915b2], 0x9a24
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
call fcn.0045ae2b
mov dword [esp + 0x28], eax
mov eax, dword [0x4954fc]
mov ecx, dword [0x49a97c]
and eax, ecx
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x41f78a
mov eax, 0x2bc74e01
mov cx, word [0x492494]
movsx edx, cx
add edx, 0x69205f90
mov esi, dword [0x496268]
inc esi
mov dword [0x496268], esi
or edx, esi
cmp eax, edx
jle 0x41f785
mov eax, dword [0x4996d4]
add eax, 0xf4204085
mov dword [0x4996d4], eax
jmp 0x41f7c0
mov eax, 0x8a35965c
mov ecx, dword [0x4946f8]
mov edx, ecx
inc edx
mov dword [0x4946f8], edx
cmp eax, ecx
jg 0x41f7bb
mov ax, word [0x48f214]
mov cx, ax
and ecx, 0x41
mov ax, cx
mov word [0x48f214], ax
jmp 0x41f7c0
mov eax, dword [esp + 0x2c]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.00450bc0
mov eax, dword [0x49c79c]
mov ecx, eax
dec ecx
mov dword [0x49c79c], ecx
mov ecx, dword [0x497040]
imul ecx, eax
mov dword [0x497040], ecx
mov dword [0x495a70], 0xead9ca5a
cmp dword [esp + 0x28], 0
je 0x41f878
mov eax, dword [0x4959c0]
and eax, 0x59a7f2e6
mov dword [0x4959c0], eax
mov eax, dword [esp + 0x28]
mov ecx, esp
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], 1
mov dword [ecx + 4], 4
mov dword [ecx], 0x49d134
call fcn.0045cc44
mov ecx, dword [0x4953b8]
and ecx, 0x42a2355a
mov dword [0x4953b8], ecx
mov ecx, dword [esp + 0x28]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x14], eax
call fcn.0045cd32
mov si, word [0x490578]
movsx ecx, si
not ecx
mov edx, dword [0x495364]
add edx, ecx
mov dword [0x495364], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x498dc0]
mov ecx, dword [0x495cf8]
and ecx, eax
mov dword [0x495cf8], ecx
add esp, 0x3c
pop esi
ret