Function at 0x10096a9
Capabilities:
Check if file exists
Get file attributes
Get system information on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x101fb10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
pop ecx
push 6
mov esi, 0x1001980
lea edi, [ebp - 0xd4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
mov esi, 0x1001964
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 6
pop ecx
mov esi, 0x1001948
lea edi, [ebp - 0x98]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 5
pop ecx
mov esi, 0x1001930
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x1001918
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 5
pop ecx
mov esi, 0x1001900
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 8
pop ecx
push 0xc
mov esi, 0x10018e0
lea edi, [ebp - 0xf4]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10018ac
lea edi, [ebp - 0x22c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x1001898
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 7
movsb byte es:[edi], byte [esi]
pop ecx
mov esi, 0x100187c
lea edi, [ebp - 0xb4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
mov dword [ebp - 0x344], ebx
mov dword [ebp - 0x340], 1
mov dword [ebp - 0x370], 0x100185c
mov dword [ebp - 0x36c], 0x1001848
mov dword [ebp - 0x368], 0x1001828
mov dword [ebp - 0x364], 0x1001810
mov dword [ebp - 0x360], 0x10017f4
mov dword [ebp - 0x35c], 0x10017c8
mov dword [ebp - 0x358], 0x10017b0
mov dword [ebp - 0x354], 0x1001784
mov dword [ebp - 0x350], 0x100174c
mov dword [ebp - 0x34c], esi
push 2
push esi
push esi
push 0x40000000
push 0x1021508
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x334], eax
cmp eax, 0xffffffff
jne 0x1009814
push esi
push 0x10
push esi
push esi
push 0x462
push ebx
call fcn.01007006
xor eax, eax
jmp 0x1009e7b
mov edi, 0x200
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x330], eax
cmp eax, esi
jne 0x100984a
push esi
push 0x10
push esi
push esi
push 0x44c
push ebx
call fcn.01007006
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100980d
push 0x100
lea eax, [ebp - 0x32c]
push eax
push 0x41c
call fcn.0100684a
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x32c]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x334]
call esi
push 0x102160c
lea eax, [ebp - 0xd4]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push dword [0x1022578]
lea eax, [ebp - 0x7c]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push dword [0x102257c]
lea eax, [ebp - 0x98]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0x1021710
lea eax, [ebp - 0x60]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0x1021814
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
test dword [0x102258c], 0x10000
mov eax, 0x1001744
jne 0x10099c3
mov eax, 0x100173c
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
mov eax, dword [0x102258c]
test eax, 0x20000
je 0x1009a08
xor eax, eax
inc eax
jmp 0x1009a20
test eax, 0x40000
je 0x1009a14
push 2
pop eax
jmp 0x1009a20
and eax, 0x80000
neg eax
sbb eax, eax
and eax, 3
push dword [eax*4 + 0x101f2c8]
lea eax, [ebp - 0xf4]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0x1022060
lea eax, [ebp - 0x22c]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0x10231e0
push 0x104
lea eax, [ebp - 0x1f8]
push eax
push 0x1001738
push 0x100172c
push 0x10014c4
call fcn.01007436
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0x10231e0
push 0x15
push 0x1001718
push 0x10014c4
call fcn.0100693b
test eax, eax
jg 0x1009b14
push 0x15
pop eax
push eax
lea eax, [ebp - 0xb4]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e95
add esp, 0x10
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
and dword [ebp - 0x33c], 0
mov dword [ebp - 0x348], 0x100185c
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x348]
call ebx
push eax
push dword [ebp - 0x348]
push dword [ebp - 0x334]
call esi
inc dword [ebp - 0x33c]
mov eax, dword [ebp - 0x33c]
mov eax, dword [ebp + eax*4 - 0x370]
mov dword [ebp - 0x348], eax
test eax, eax
jne 0x1009b5c
mov eax, dword [0x10225a4]
mov dword [ebp - 0x33c], eax
jmp 0x1009bac
mov eax, dword [ebp - 0x33c]
test eax, eax
je 0x1009d47
push dword [eax + 4]
push edi
push dword [ebp - 0x330]
call fcn.01006dcd
mov eax, dword [ebp - 0x33c]
push dword [eax]
push edi
push dword [ebp - 0x330]
call fcn.01006e54
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1009d1a
test al, 0x10
jne 0x1009d1a
test byte [0x102258c], 2
lea eax, [ebp - 0x1f8]
je 0x1009c5a
push 0x100150c
push 0x104
push eax
call fcn.01006dcd
test eax, eax
jl 0x100980d
push dword [ebp - 0x330]
lea eax, [ebp - 0x1f8]
push 0x104
push eax
call fcn.01006e54
test eax, eax
jl 0x100980d
push 0x100150c
push 0x104
lea eax, [ebp - 0x1f8]
push eax
call fcn.01006e54
test eax, eax
jl 0x100980d
jmp 0x1009c74
push 0x104
push eax
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1009d0c
push 0
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x1f8]
push eax
call ebx
push eax
lea eax, [ebp - 0x1f8]
push eax
push dword [ebp - 0x334]
call esi
push 0
lea eax, [ebp - 0x338]
push eax
push 0x1001714
call ebx
push eax
push 0x1001714
push dword [ebp - 0x334]
call esi
mov ecx, dword [ebp - 0x33c]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x33c], ecx
test eax, eax
jne 0x1009ba6
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x334]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x340], eax
jne 0x1009e78
push eax
push 0x10
push eax
push eax
push 0x463
push dword [ebp - 0x344]
jmp 0x1009808
xor eax, eax
push eax
push 0x10
push eax
push eax
push 0x46f
jmp 0x1009d2b
push 0
push 0x10
push 0
push dword [ebp - 0x330]
push 0x46e
push dword [ebp - 0x344]
call fcn.01007006
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100983c
cmp dword [ebp - 0x340], 0
je 0x1009cd1
test byte [0x102258c], 4
je 0x1009cd1
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x10231e0
push 0xffffffffffffffff
push 0x1001704
push 0x10014c4
call fcn.0100693b
mov dword [ebp - 0x33c], 0x101f27c
cmp dword [ebp - 0x340], 0
je 0x1009cd1
mov ecx, dword [ebp - 0x33c]
xor eax, eax
push eax
push dword [ecx]
push eax
push eax
call fcn.010071e9
test eax, eax
jne 0x1009e45
push 0x104
lea eax, [ebp - 0x1f8]
push eax
mov eax, dword [ebp - 0x33c]
push dword [eax]
call fcn.010082dd
test eax, eax
je 0x1009e61
push 0x100150c
push edi
push dword [ebp - 0x330]
call fcn.01006dcd
lea eax, [ebp - 0x1f8]
push eax
push edi
push dword [ebp - 0x330]
call fcn.01006e54
push 0x100150c
push edi
push dword [ebp - 0x330]
call fcn.01006e54
push 0
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x330]
call ebx
push eax
push dword [ebp - 0x330]
push dword [ebp - 0x334]
call esi
push 0
lea eax, [ebp - 0x338]
push eax
push 2
push 0x1001714
push dword [ebp - 0x334]
call esi
mov dword [ebp - 0x340], eax
add dword [ebp - 0x33c], 4
cmp dword [ebp - 0x33c], 0x101f280
jl 0x1009d8a
jmp 0x1009cd1
push 0
push 0x10
push 0
lea eax, [ebp - 0x1f8]
push eax
push 0x46d
jmp 0x1009d2b
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01010bbf
leave
ret 4