Function at 0x406fb0
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x2c
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov eax, dword [0x4914a4]
xor eax, 0xf7ede4f2
mov dword [0x4914a4], eax
mov eax, dword [0x491c70]
mov ecx, dword [0x4916f4]
dec ecx
imul eax, ecx
mov dword [0x4916f4], ecx
mov ecx, dword [0x491948]
imul eax, ecx
imul eax, eax, 0xdfe7fb00
mov dword [0x491948], eax
cmp dword [0x492e5c], 0
jne 0x40705f
mov eax, dword [0x491760]
mov ecx, eax
dec ecx
mov dword [0x491760], ecx
mov ecx, dword [0x491dc0]
sar ecx, 3
neg ecx
lea eax, [eax + ecx + 0xa95a2e6]
mov ecx, dword [0x491df4]
sub ecx, eax
mov dword [0x491df4], ecx
call fcn.00444750
mov dword [0x492e5c], eax
mov eax, dword [0x4918f4]
imul eax, eax, 0x8b3f164
xor eax, 0x6eed64ad
mov ecx, dword [0x4915ac]
or ecx, eax
mov dword [0x4915ac], ecx
mov eax, dword [0x4919c8]
xor eax, 0x12ccda99
mov dword [0x4919c8], eax
mov eax, esp
mov dword [eax + 4], 3
mov dword [eax], 0x21f1
call fcn.004066f0
mov dword [esp + 0x20], eax
mov eax, dword [0x4914cc]
mov ecx, eax
dec ecx
mov dword [0x4914cc], ecx
imul eax, eax, 0x71cb2fe
add eax, 0x9b88fe1
mov ecx, dword [0x491a68]
imul ecx, eax
mov dword [0x491a68], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
call fcn.0045552c
mov dword [esp + 0x18], eax
mov eax, dword [0x491938]
add eax, 0xbcc2e938
mov dword [0x491938], eax
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.004260a0
mov eax, dword [0x4917e4]
mov si, word [0x491f3c]
mov cx, si
and eax, ecx
and eax, 0x6b40
mov si, ax
mov word [0x491f3c], si
cmp dword [esp + 0x18], 0
jne 0x4071ce
mov ax, word [0x492096]
mov cx, ax
or ecx, 0x64ae
mov ax, cx
mov word [0x492096], ax
mov ecx, dword [0x4913e4]
mov edx, esp
mov dword [edx], 0x436
call ecx
sub esp, 4
mov ecx, dword [0x491934]
add ecx, 0xa0e9bce7
mov dword [0x491934], ecx
mov ecx, esp
mov dword [ecx + 4], 3
mov dword [ecx], 0x21f1
call fcn.004066f0
mov dword [esp + 0x1c], eax
mov si, word [0x4921b2]
mov ax, si
or eax, 0xfffe
mov si, ax
mov word [0x4921b2], si
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
call fcn.0045552c
mov dword [esp + 0x18], eax
mov eax, dword [0x49152c]
imul eax, eax, 0x87ec6f30
mov dword [0x49152c], eax
mov eax, dword [esp + 0x1c]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.004260a0
mov eax, dword [0x491de8]
imul eax, eax, 0x5da7fcff
mov dword [0x491de8], eax
mov ax, word [0x492426]
mov cx, ax
imul ecx, ecx, 0x372e4b99
mov ax, cx
mov word [0x492426], ax
cmp dword [esp + 0x18], 0
je 0x40726c
mov eax, dword [0x491514]
add eax, 0x6903b10e
mov dword [0x491514], eax
mov eax, dword [esp + 0x18]
mov ecx, esp
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], 1
mov dword [ecx + 4], 4
mov dword [ecx], 0x492e5c
call fcn.004556df
mov ecx, dword [0x4914a8]
or ecx, 0x5c922b25
mov dword [0x4914a8], ecx
mov ecx, dword [esp + 0x18]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x14], eax
call fcn.004557cd
mov ecx, dword [0x491594]
mov edx, ecx
dec edx
mov dword [0x491594], edx
imul ecx, ecx, 0xa3a33e32
mov edx, dword [0x491a08]
add edx, ecx
mov dword [0x491a08], edx
mov dword [esp + 0x10], eax
mov ax, word [0x49245e]
mov cx, ax
and ecx, 0xbefe
mov ax, cx
mov word [0x49245e], ax
add esp, 0x2c
pop esi
ret