Function at 0x412f00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45af19
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x890]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8a0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8a4]
xor edi, edi
push eax
mov dword [esp + 0x38], edi
call fcn.0041c230
mov ebx, eax
add esp, 4
cmp ebx, 4
jne 0x412f6b
mov dword [esp + 0x34], 1
push ebx
push str.type____d__r_n
push 0x400
lea ecx, [esp + 0x98]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov dword [esp + 0x898], edi
mov ebp, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412fb7
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x8a0], 1
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x413008
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x413023
lea edx, [esp + 0x3c]
mov ebp, dword [0x471b30]
cmp ebp, edi
je 0x41305c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413032
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov dword [esp + 0x898], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x41307b
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
add ebx, 0xfffffffe
cmp ebx, 4
ja 0x4135e2
cmp dword [esp + 0x34], edi
jne 0x413129
mov esi, dword [0x471f70]
xor eax, eax
cmp eax, dword [0x471f6c]
jl 0x413129
jg 0x4130af
cmp esi, dword [0x471f68]
jb 0x413129
push 0x206
lea eax, [esp + 0x92]
push edi
push eax
mov word [esp + 0x98], di
call fcn.00443e10
test esi, esi
mov dword [esp + 0x40], esi
fild dword [esp + 0x40]
jge 0x4130dc
fadd dword [0x466408]
fld qword [0x466448]
add esp, 4
fmul st(1), st(0)
lea ecx, [esp + 0x94]
fmulp st(1)
fstp qword [esp]
push 0x461be0
push 0x208
push 0x104
push ecx
call fcn.0043ef21
mov edx, dword [esp + 0x48]
add esp, 0x18
push 0x30
push 0x4602a4
push edx
push ecx
call fcn.00406c20
lea ecx, [esp + 0x9c]
jmp 0x4135f9
push 0x472048
call fcn.0041beb0
add esp, 4
test eax, eax
jne 0x413156
mov eax, dword [esp + 0x30]
push 0x10
push 0x4602a4
push eax
push ecx
call fcn.00406c20
mov ecx, 0x461c2c
jmp 0x4135f9
lea ecx, [esp + 0x54]
call fcn.0041c860
mov dword [esp + 0x898], 2
mov eax, dword [esp + 0x58]
mov ebp, 8
cmp dword [esp + 0x6c], ebp
jae 0x41317d
lea eax, [esp + 0x58]
push eax
push str.strUserSavePath____s__r_n
push 0x400
lea ecx, [esp + 0x98]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x898], 3
mov ebx, 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4131d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x8a0], 4
call fcn.00406d90
cmp dword [esp + 0x2c], ebp
jb 0x41321c
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], ebp
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x413237
lea edx, [esp + 0x3c]
mov ebp, dword [0x471b30]
cmp ebp, edi
je 0x413270
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413246
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x898], 2
cmp dword [esp + 0x50], 8
jb 0x41328c
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x68], edi
jne 0x4133a7
push str.strUserSavePath__NULL__r_n
push 0x400
lea eax, [esp + 0x94]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x898], 5
lea eax, [esp + 0x8c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4132e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x90]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push edi
push edx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x8a0], 6
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x413331
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x41334c
lea edx, [esp + 0x3c]
mov ebp, dword [0x471b30]
cmp ebp, edi
je 0x41338b
mov eax, edx
lea esi, [eax + 2]
jmp 0x413360
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413360
sub eax, esi
sar eax, 1
push ebp
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x898], 2
cmp dword [esp + 0x50], 8
jb 0x4133a7
mov eax, dword [esp + 0x3c]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x6c], 8
mov ecx, dword [esp + 0x58]
jae 0x4133b6
lea ecx, [esp + 0x58]
mov edx, 0x4720b8
jmp 0x4133c0
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x4133c0
mov esi, dword [esp + 0x30]
push esi
call fcn.00414590
add esp, 4
test eax, eax
jne 0x4134fc
push str.IsValidUserDataPath__FALSE__r_n
push 0x400
lea ecx, [esp + 0x94]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.0042a750
mov byte [esp + 0x898], 7
lea eax, [esp + 0x8c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413430
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0x8a0], 8
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x413481
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x50], esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x41349c
lea edx, [esp + 0x3c]
mov ebp, dword [0x471b30]
cmp ebp, edi
je 0x4134da
mov eax, edx
lea esi, [eax + 2]
jmp 0x4134b0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4134b0
sub eax, esi
sar eax, 1
push ebp
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0x50], 8
jb 0x4134ee
mov edx, dword [esp + 0x3c]
push edx
call fcn.0043ef40
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00406ab0
jmp 0x413603
push esi
call fcn.00414890
add esp, 4
test eax, eax
jne 0x4135d2
push str.CheckUserDataDiskSpace__FALSE__r_n
push 0x400
lea eax, [esp + 0x494]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x10
lea ecx, [esp + 0x70]
call fcn.0042a750
mov byte [esp + 0x898], 9
lea eax, [esp + 0x48c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413554
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x490]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push edi
push edx
or eax, 0xffffffff
lea esi, [esp + 0x78]
mov byte [esp + 0x8a0], 0xa
call fcn.00406d90
mov edi, 8
cmp dword [esp + 0x2c], edi
jb 0x4135a5
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x88], edi
mov esi, dword [esp + 0x74]
jae 0x4135b6
lea esi, [esp + 0x74]
call fcn.0041a270
cmp dword [esp + 0x88], edi
jb 0x4134ee
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x4134e6
lea ecx, [esp + 0x54]
call fcn.00406ab0
mov eax, 1
jmp 0x413605
mov edx, dword [esp + 0x30]
push 0x10
push 0x4602a4
push edx
push ecx
call fcn.00406c20
mov ecx, 0x461bb8
add esp, 4
mov edx, eax
call fcn.00410df0
xor eax, eax
mov ecx, dword [esp + 0x890]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.0043ef12
add esp, 0x888
ret