Function at 0x455650
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c8c06
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521da0]
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.00490c84
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.00498d81
mov dword [esp + 0x28], eax
and eax, edx
add esp, 4
mov dword [esp + 0x28], edx
cmp eax, edi
jne 0x455713
push 0x80070057
call fcn.00405030
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.00498d81
mov dword [esp + 0x20], eax
and eax, edx
add esp, 4
mov dword [esp + 0x20], edx
cmp eax, edi
jne 0x45575c
push 0x80070057
call fcn.00405030
push 0xff
lea edx, [esp + 0x8d]
push ebx
push edx
mov byte [esp + 0x94], bl
call fcn.00495e20
add esp, 0xc
mov ecx, ebp
mov dword [ebp + 0xa7b8], 1
mov dword [ebp + 0xa618], ebx
call fcn.004548d0
add ebp, 0x1344
mov eax, ebp
lea edx, [eax + 1]
jmp 0x4557a0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4557a0
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x74]
call fcn.004028e0
push esi
push str.Qsave_02d.dat
lea eax, [esp + 0x90]
push 0x100
push eax
call fcn.004974e5
lea eax, [esp + 0x98]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4557e0
sub eax, edx
push eax
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x74]
call fcn.00407a30
cmp dword [esp + 0x84], 0x10
mov eax, dword [esp + 0x70]
jae 0x45580d
lea eax, [esp + 0x70]
push ebx
push eax
lea ecx, [esp + 0x5c]
call fcn.00490d19
mov edi, eax
cmp edi, 1
jne 0x455858
lea ecx, [esp + 0x54]
call fcn.00490a1d
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x58]
call fcn.00490ba1
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x20]
jg 0x455858
mov eax, dword [esp + 0x24]
jl 0x45584c
cmp eax, dword [esp + 0x1c]
jae 0x455858
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x54]
call fcn.00490937
cmp edi, ebx
je 0x4558cc
inc esi
cmp esi, 0x32
jl 0x455796
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x455874
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x74]
call fcn.004028e0
mov eax, dword [esp + 0x18]
push eax
push str.Qsave_02d.dat
lea ecx, [esp + 0x90]
push 0x100
push ecx
call fcn.004974e5
lea eax, [esp + 0x98]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4558b1
sub eax, edx
push eax
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x74]
call fcn.00407a30
mov eax, dword [esp + 0x70]
mov esi, 0x10
cmp dword [esp + 0x84], esi
jae 0x4558e2
lea eax, [esp + 0x70]
push 0x4d3480
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0049924a
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp edx, ebx
je 0x455944
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.004993ff
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0049587d
add esp, 0x14
lea ecx, [esp + 0x54]
mov byte [esp + 0x194], bl
call fcn.00490caa
cmp dword [esp + 0x84], esi
jb 0x45596a
mov edx, dword [esp + 0x70]
push edx
jmp 0x455962
lea ecx, [esp + 0x54]
mov byte [esp + 0x194], bl
call fcn.00490caa
cmp dword [esp + 0x84], esi
jb 0x45596a
mov eax, dword [esp + 0x70]
push eax
call fcn.00485196
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.00496795
add esp, 0x184
ret