Function at 0x9e5780
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0xa88d21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x60], 2
jb 0x9e57db
mov ecx, dword [esp + 0x200]
mov edx, dword [esp + 0x1f8]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
add esp, 0x1f4
ret
lea eax, [esp + 0xe4]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0xe4]
push ecx
call fcn.009e3770
mov cl, byte [esp + eax + 0xe7]
lea eax, [esp + eax + 0xe7]
add esp, 4
cmp cl, 0x5c
je 0x9e5816
cmp cl, 0x2f
jne 0x9e5819
mov byte [eax], 0
push ebx
push ebp
push esi
lea edx, [esp + 0xf0]
push edi
push edx
call fcn.009e56b0
add esp, 4
mov eax, dword [esp + 0x210]
xor ebx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x3c]
mov edi, dword [ecx + eax + 0x88]
lea eax, [ecx + eax + 4]
mov ecx, dword [0xaaae58]
mov ebp, dword [eax + 0x88]
mov bx, word [ecx + 0xaaae30]
lea esi, [ecx + 0xaaae34]
add ebx, esi
test edi, edi
jne 0x9e5868
xor ebp, ebp
mov eax, dword [esi + 0x20]
push 2
push 0x2000
lea ecx, [eax + ebp + 0x1017]
dec eax
not eax
and ecx, eax
push ecx
push 0
mov dword [esp + 0x50], ecx
call fcn.00a47570
mov ecx, dword [esp + 0x50]
mov edx, edi
add esp, 0x10
mov dword [esp + 0x20], eax
neg edx
sbb edx, edx
mov dword [esi + 0x1c], eax
and edx, 0x1018
xor eax, eax
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x38], ecx
mov esi, dword [esi + 0x20]
lea ecx, [ebp + 0x18]
mov dword [ebx + 0x10], ecx
lea ecx, [esp + 0x2c]
lea edx, [esi + ebp + 0x17]
dec esi
not esi
and edx, esi
mov dword [ebx + 8], edx
mov dl, byte [esp + 0x13]
mov byte [esp + 0x2c], dl
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0xa91734
mov dword [esp + 0x28], ecx
push 0x218
push 0xaaae1c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x208], eax
call dword [0xa91738]
xor esi, esi
cmp edi, esi
je 0x9e59aa
push ebp
call fcn.009ef3b0
mov edx, dword [esp + 0x214]
mov ecx, ebp
mov dword [esp + 0x48], eax
mov esi, dword [edx + 0x10]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x214]
mov esi, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
sub ecx, esi
push ecx
push eax
push eax
call fcn.009e5c70
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0x24]
call dword [edx + 0x10]
cmp eax, dword [ebx + 0x14]
jae 0x9e598e
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x13]
push 1
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b], 0
call dword [edx + 4]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 0x10]
cmp eax, dword [ebx + 0x14]
jb 0x9e5967
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
push ebp
push esi
lea ecx, [esp + 0x2c]
call dword [edx + 4]
push esi
call fcn.009ef440
add esp, 4
xor esi, esi
mov ebp, dword [esp + 0x210]
mov edi, dword [ebp]
push edi
call fcn.009e3770
add esp, 4
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x28]
push edi
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 4]
cmp eax, esi
jne 0x9e59d9
xor ecx, ecx
jmp 0x9e59de
mov ecx, dword [ecx + 8]
sub ecx, eax
lea edx, [esp + 0x4c]
push edx
push ecx
push eax
call fcn.00a4bcc0
mov dword [esp + 0x28], esi
lea eax, [esp + 0x58]
push 0xa0
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x218], 1
call fcn.00a49e40
mov edx, dword [esp + 0x34]
add esp, 0x18
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x14]
push edx
push eax
push str._s_ths__s.tmp
push ecx
call fcn.009e3530
add esp, 0x10
mov edx, dword [esp + 0x14]
mov byte [esp + 0x200], 2
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x9e5ada
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push str._s._d
push ecx
call fcn.009e3530
mov edx, dword [esp + 0x28]
add esp, 0x10
push esi
push 0x80
push 1
push esi
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x9e5ad1
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
cmp ecx, esi
jne 0x9e5a97
xor eax, eax
jmp 0x9e5a9c
mov eax, dword [eax + 8]
sub eax, ecx
lea edx, [esp + 0x48]
push esi
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x9e5ad1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call fcn.009e3750
mov eax, dword [0xaa2204]
mov ecx, dword [eax]
shr ecx, 0x12
test cl, 1
je 0x9e5b0e
mov edx, dword [esp + 0x208]
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp]
push edx
push ebx
push eax
mov eax, dword [esp + 0x20]
push eax
push str.creating_95_98_ME_dll_stub__s_for__s___module_address___x__contents___x__n
call fcn.009fe320
add esp, 0x14
jmp 0x9e5b12
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
push ecx
push ebx
call fcn.00a474c0
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
je 0x9e5b4d
and al, 0x80
cmp eax, ebx
je 0x9e5b4d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
jmp 0x9e5b5a
lea edx, [esp + 0x14]
lea ecx, [ebp + 4]
push edx
call fcn.009e36b0
lea ecx, [esp + 0x14]
mov byte [esp + 0x200], 1
call fcn.009e3750
lea ecx, [esp + 0x1c]
mov byte [esp + 0x200], 0
call fcn.009e3750
mov eax, dword [esp + 0x30]
mov dword [esp + 0x200], 0xffffffff
push eax
call fcn.00a7d8f0
add esp, 4
cmp edi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], 0xa91700
je 0x9e582d
mov ecx, dword [esp + 0x210]
mov dword [ecx + 8], edi
mov ecx, dword [esp + 0x1f8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1f4
ret