Function at 0x412ab0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov eax, dword [0x4a5220]
or eax, 0x5d5a9b45
mov dword [0x4a5220], eax
mov eax, dword [0x4a8284]
or eax, 0x8e14427d
cmp eax, 0x8670d750
jne 0x412b01
mov ax, word [0x49664e]
mov cx, ax
add ecx, 0x3ffd6dfb
mov ax, cx
mov word [0x49664e], ax
cmp dword [0x4ad10c], 0
jne 0x412b85
mov eax, 0x521ac11e
mov ecx, dword [0x4ac634]
cmp eax, ecx
jg 0x412b37
mov eax, dword [0x4a326c]
shl eax, 5
mov ecx, dword [0x4a7cac]
or ecx, eax
mov dword [0x4a7cac], ecx
call fcn.004371d0
mov dword [0x4ad10c], eax
mov eax, dword [0x4ab058]
lea eax, [eax*8 - 0x4d7efed3]
mov ecx, dword [0x4a3e38]
and ecx, 0x851fa8c0
cmp eax, ecx
jne 0x412b80
mov ax, word [0x495ad8]
mov cx, ax
not ecx
mov ax, word [0x495e62]
mov dx, ax
or edx, ecx
mov ax, dx
mov word [0x495e62], ax
jmp 0x412b85
mov eax, dword [0x4a5ed8]
and eax, 0x57a0544d
mov dword [0x4a5ed8], eax
mov eax, esp
mov dword [eax + 4], 3
mov dword [eax], 0x428c
call fcn.00402ec0
mov dword [esp + 0x24], eax
mov eax, dword [0x4a2aa8]
or eax, 0xdf5a4f4a
mov dword [0x4a2aa8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
call fcn.00455013
mov dword [esp + 0x1c], eax
mov eax, dword [0x4a254c]
xor eax, 0xf0ed756c
mov dword [0x4a254c], eax
mov eax, dword [esp + 0x24]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.004018d0
mov eax, dword [0x4a656c]
mov ecx, dword [0x4a6b54]
add ecx, eax
mov dword [0x4a6b54], ecx
cmp dword [esp + 0x1c], 0
jne 0x412d2e
mov eax, 0xb6ffdbbf
mov cx, word [0x49b80c]
movsx edx, cx
mov esi, dword [0x4a6208]
sub esi, edx
mov dword [0x4a6208], esi
mov edx, dword [0x4940a4]
mov esi, esp
mov dword [esi], 0x44c
mov dword [esp + 0x18], eax
call edx
sub esp, 4
mov eax, dword [0x49ffc4]
xor eax, 0x454922b9
mov dword [0x49ffc4], eax
mov eax, esp
mov dword [eax + 4], 3
mov dword [eax], 0x428c
call fcn.00402ec0
mov dword [esp + 0x20], eax
mov eax, dword [0x4a0120]
sub eax, 0xa279ead4
mov edx, dword [esp + 0x18]
cmp edx, eax
jl 0x412c94
mov eax, dword [0x49cea8]
add eax, 0x53e5e2d6
mov dword [0x4ab884], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, esp
mov dword [edx + 4], eax
mov dword [edx], ecx
call fcn.00455013
mov dword [esp + 0x1c], eax
mov si, word [0x49a93e]
mov ax, si
dec eax
mov di, ax
mov word [0x49a93e], di
movsx eax, si
cmp eax, 0x5a2dbde9
je 0x412cfa
mov eax, dword [0x49fe94]
mov ecx, eax
inc ecx
mov dword [0x49fe94], ecx
add eax, 0xbea87de5
xor eax, 0x3615d8b0
mov ecx, dword [0x49dd2c]
add ecx, eax
mov dword [0x49dd2c], ecx
jmp 0x412d11
mov eax, dword [0x49c958]
sar eax, 2
mov ecx, dword [0x4ac454]
imul ecx, eax
mov dword [0x4ac454], ecx
mov eax, dword [esp + 0x20]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.004018d0
mov word [0x499816], 0x1b5f
mov dword [0x4a0154], 0x4da19a3c
cmp dword [esp + 0x1c], 0
je 0x412db2
mov dword [0x4aa210], 0xe7fd3f87
mov eax, dword [esp + 0x1c]
mov ecx, esp
mov dword [ecx + 0xc], eax
mov dword [ecx + 8], 1
mov dword [ecx + 4], 4
mov dword [ecx], 0x4ad10c
call fcn.004551c6
mov ecx, dword [0x49df10]
shl ecx, 6
or ecx, 0xc83d4f3b
and ecx, 0xed7fefbb
mov edx, dword [0x49f580]
imul edx, ecx
mov dword [0x49f580], edx
mov ecx, dword [esp + 0x1c]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x14], eax
call fcn.004552b4
mov dword [0x4a1e2c], 0x7a3b4b16
mov dword [esp + 0x10], eax
mov eax, 0xc28040
mov ecx, dword [0x4a0f40]
sub ecx, 0xe3e20bf6
add ecx, 0x486d3d7a
cmp eax, ecx
jge 0x412de0
mov eax, dword [0x4a76ec]
and eax, 0xbc0b2b28
mov dword [0x4a76ec], eax
add esp, 0x30
pop esi
pop edi
ret