Function at 0x410fa0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x483ab7
push eax
mov eax, 0x104a4
mov dword fs:[0], esp
call fcn.0047c8c0
push ebx
push ebp
push esi
lea eax, [esp + 0x2a8]
push edi
mov ebx, ecx
push eax
push 0x104
mov dword [esp + 0x2c], ebx
call dword [0x4891c0]
mov ecx, dword [0x498080]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x2ac]
lea eax, [esp + 0x18]
push edx
xor esi, esi
push str._sNUList.ini
push eax
mov dword [esp + 0x104c8], esi
call fcn.00402f50
mov ecx, dword [0x498080]
add esp, 0xc
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x18]
mov byte [esp + 0x104bc], 1
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41109c
mov ecx, 0x3fff
xor eax, eax
lea edi, [esp + 0x4b6]
mov word [esp + 0x4b4], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4b4]
push eax
push 0x8000
push ecx
push 0x4a3de8
push str.pdown
push str.NUList
call dword [0x489104]
lea edx, [esp + 0x4b4]
test edx, edx
jne 0x41107a
xor eax, eax
jmp 0x411088
lea eax, [esp + 0x4b4]
push eax
call dword [0x4891e0]
lea ecx, [esp + 0x4b4]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00403900
jmp 0x4110f9
mov edx, dword [esp + 0x18]
push 0x499484
push edx
call dword [0x489364]
mov ebp, eax
add esp, 8
cmp ebp, esi
je 0x4110f9
mov ecx, 9
mov esi, str._NUList__r_npdown_r_n
lea edi, [esp + 0x30]
push ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [0x489378]
push 1
lea eax, [esp + 0x1c]
push 2
push eax
mov byte [esp + 0x24], 0xff
mov byte [esp + 0x25], 0xfe
call esi
push ebp
push 1
lea ecx, [esp + 0x48]
push 0x24
push ecx
call esi
push ebp
call dword [0x48935c]
add esp, 0x24
mov ecx, ebx
call fcn.00410ba0
mov ebp, eax
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x2c], ebp
jle 0x411356
mov ecx, dword [esp + 0x24]
push ebx
call fcn.00410ed0
mov esi, eax
test esi, esi
je 0x41134d
mov ecx, esi
call fcn.00401170
cmp eax, 0xffffffff
je 0x41134d
lea edx, [esp + 0x58]
push edx
push eax
call fcn.00427130
add esp, 8
test eax, eax
je 0x41134d
cmp byte [esp + 0x9d], 1
jne 0x41134d
mov ecx, esi
call fcn.0040ae80
mov edi, eax
call dword [0x489108]
mov dword [esp + 0x28], edi
mov edi, eax
mov eax, dword [esp + 0x28]
mov ecx, esi
sub edi, eax
call fcn.0040b180
cmp edi, dword [eax + 0x6c]
jge 0x411186
mov ecx, esi
call fcn.0040b180
mov ecx, dword [0x498080]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
push eax
mov eax, 0x10624dd3
lea ecx, [esp + 0xa8]
imul edi
sar edx, 6
mov eax, edx
push 0x4a3de8
shr eax, 0x1f
add edx, eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x104d0], 2
call fcn.0040b180
mov ecx, dword [eax + 8]
push ecx
push 0x49944c
mov ecx, esi
call fcn.0040b180
mov edx, dword [eax + 0x44]
lea eax, [esp + 0x30]
push edx
push str.pdown:__p2_sb5_sb6_sp4_d__s__s__u_
push eax
call fcn.00402f50
mov ecx, dword [esp + 0x38]
add esp, 0x28
mov eax, dword [ecx - 8]
push 0x498978
test eax, eax
jne 0x4112c0
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00411db0
mov esi, eax
mov edi, dword [esi]
mov eax, dword [esp + 0x10]
cmp eax, edi
mov byte [esp + 0x104bc], 3
je 0x411298
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x411239
mov ecx, dword [0x498084]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x411240
mov eax, dword [edi - 0xc]
test eax, eax
jge 0x41127f
mov esi, dword [edi - 8]
lea ecx, [esp + 0x10]
push esi
call fcn.00403af0
test eax, eax
je 0x411298
mov edx, dword [esp + 0x10]
lea ebp, [esi + esi]
push ebp
lea ecx, [esi + esi + 2]
push edi
push ecx
push edx
call fcn.00402de0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [esp + 0x10]
mov word [ecx + ebp], 0
mov ebp, dword [esp + 0x2c]
jmp 0x411298
lea ecx, [esp + 0x10]
call fcn.00403b90
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [0x4891bc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x498084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x411316
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x411316
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
jmp 0x41130d
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00411db0
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x104c0], 4
mov eax, dword [eax - 8]
push eax
call fcn.004039c0
mov eax, dword [esp + 0x20]
mov edx, dword [0x498084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411316
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x411316
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.0047ab00
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x498084]
mov byte [esp + 0x104bc], 1
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41134d
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x41134d
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0047ab00
add esp, 4
inc ebx
cmp ebx, ebp
jl 0x411110
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push str.pdown
push str.NUList
call dword [0x489144]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x498084]
pop edi
pop esi
lea edx, [eax - 0xc]
pop ebp
cmp edx, ecx
pop ebx
je 0x4113a3
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x4113a3
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call fcn.0047ab00
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x498084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4113d2
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x4113d2
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0047ab00
add esp, 4
mov ecx, dword [esp + 0x104a4]
mov dword fs:[0], ecx
add esp, 0x104b0
ret