Function at 0x456790
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c9fd6
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x522d80]
xor eax, esp
push eax
lea eax, [esp + 0x18c]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea ecx, [esp + 0x54]
mov dword [esp + 0x194], ebx
xor esi, esi
mov dword [esp + 0x18], ebx
call fcn.00491a58
lea eax, [esp + 0x30]
or edi, 0xffffffff
push eax
mov byte [esp + 0x198], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x46
mov dword [esp + 0x54], edi
call fcn.00499b71
mov dword [esp + 0x28], eax
and eax, edx
add esp, 4
mov dword [esp + 0x28], edx
cmp eax, edi
jne 0x456853
push 0x80070057
call fcn.00405150
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x12
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 0x8a
mov dword [esp + 0x54], edi
call fcn.00499b71
mov dword [esp + 0x20], eax
and eax, edx
add esp, 4
mov dword [esp + 0x20], edx
cmp eax, edi
jne 0x45689c
push 0x80070057
call fcn.00405150
push 0xff
lea edx, [esp + 0x8d]
push ebx
push edx
mov byte [esp + 0x94], bl
call fcn.00496bf0
add esp, 0xc
mov ecx, ebp
mov dword [ebp + 0xa770], 1
mov dword [ebp + 0xa5d0], ebx
call fcn.00455a10
add ebp, 0x1344
mov eax, ebp
lea edx, [eax + 1]
jmp 0x4568e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4568e0
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x74]
call fcn.00402870
push esi
push str.Qsave_02d.dat
lea eax, [esp + 0x90]
push 0x100
push eax
call fcn.004982b5
lea eax, [esp + 0x98]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x456920
sub eax, edx
push eax
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x74]
call fcn.00407af0
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x45694d
lea eax, [esp + 0x70]
push ebx
push eax
lea ecx, [esp + 0x5c]
call fcn.00491aed
mov edi, eax
cmp edi, 1
jne 0x456998
lea ecx, [esp + 0x54]
call fcn.004917f1
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x58]
call fcn.00491975
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
jg 0x456998
mov eax, dword [esp + 0x24]
jl 0x45698c
cmp eax, dword [esp + 0x1c]
jae 0x456998
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x54]
call fcn.0049170b
cmp edi, ebx
je 0x456a0c
inc esi
cmp esi, 0x32
jl 0x4568d6
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4569b4
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x74]
call fcn.00402870
mov eax, dword [esp + 0x18]
push eax
push str.Qsave_02d.dat
lea ecx, [esp + 0x90]
push 0x100
push ecx
call fcn.004982b5
lea eax, [esp + 0x98]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4569f1
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x74]
call fcn.00407af0
mov eax, dword [esp + 0x70]
mov esi, 0x10
cmp dword [esp + 0x84], esi
jae 0x456a22
lea eax, [esp + 0x70]
push 0x4d4490
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049a03a
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp edx, ebx
je 0x456a84
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xb1c]
mov ecx, dword [ecx + 0xb14]
push edx
push eax
push 1
push ecx
call fcn.0049a1ef
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0049664e
add esp, 0x14
lea ecx, [esp + 0x54]
mov byte [esp + 0x194], bl
call fcn.00491a7e
cmp dword [esp + 0x84], esi
jb 0x456aaa
mov edx, dword [esp + 0x70]
push edx
jmp 0x456aa2
lea ecx, [esp + 0x54]
mov byte [esp + 0x194], bl
call fcn.00491a7e
cmp dword [esp + 0x84], esi
jb 0x456aaa
mov eax, dword [esp + 0x70]
push eax
call fcn.00485fc1
add esp, 4
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.00497565
add esp, 0x184
ret