Function at 0x10002ad0
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x100120f0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call fcn.100031da
push eax
call fcn.100034ef
add esp, 8
push ebx
push 0x3e8
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esp + 0x2c], eax
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.10002940
mov ecx, 0xf
mov esi, str.ZjI0NWN7NjEzODgwQjMtOEFGMy00MzUwLUJGNDEtODNGQjY2MTlGNDg1fQ
lea edi, [esp + 0x198]
rep movsd dword es:[edi], dword [esi]
push 0xc7
lea eax, [esp + 0x1d9]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.10003160
lea eax, [esp + 0x1a4]
add esp, 0xc
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002b80
sub eax, edx
push eax
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x54]
call fcn.10001ca0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10002a40
add esp, 8
test al, al
sete bl
cmp dword [esp + 0x64], 0x10
jb 0x10002bc6
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1000307b
add esp, 4
test bl, bl
je 0x10002c0e
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x10002bdd
push eax
call fcn.1000307b
add esp, 4
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.1000307b
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10003523
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
cmp eax, 5
ja 0x10002c20
call fcn.10003b92
mov esi, dword [esp + 0x1c]
add esi, 5
push esi
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x10002c8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10002c51
push eax
call fcn.1000307b
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.1000307b
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10003523
mov esp, ebp
pop ebp
ret
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esp + 0x28], eax
test eax, eax
je 0x10002e8e
call fcn.100010b0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
call fcn.100010b0
push 0x7d0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10002d9d
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x34], 0x113
jne 0x10002d6e
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x38], eax
jne 0x10002d84
call fcn.10001380
test eax, eax
je 0x10002d64
mov ecx, dword [0x1000e414]
mov edx, dword [0x1000e418]
mov ax, word [0x1000e41c]
mov dword [esp + 0x84], ecx
mov ecx, 0x20
mov esi, str.dk_vz
lea edi, [esp + 0x198]
rep movsd dword es:[edi], dword [esi]
push 0x40030
lea ecx, [esp + 0x88]
mov dword [esp + 0x8c], edx
push ecx
lea edx, [esp + 0x1a0]
push edx
mov word [esp + 0x98], ax
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
jmp 0x10002d84
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x10002d84
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x10002ce2
push 1
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0x103
lea eax, [esp + 0x95]
push 0
push eax
mov byte [esp + 0x9c], 0
call fcn.10003160
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
call fcn.10003501
xor edx, edx
mov ecx, 0xa
div ecx
push 0x104
lea eax, [esp + 0x94]
push eax
mov ecx, dword [edx*4 + 0x10012004]
push ecx
call ebx
lea edx, [esp + 0x90]
push edx
call edi
push 0x1000e388
mov esi, eax
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.10004075
add esp, 0xc
cmp esi, 0xffffffff
je 0x10002dd2
lea ecx, [esp + 0x68]
push ecx
call fcn.100020f0
mov eax, dword [esp + 0x70]
add esp, 4
cmp dword [esp + 0x80], 0x10
jae 0x10002e41
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x94]
push 0x104
push edx
call fcn.10004075
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call edi
cmp eax, 0xffffffff
jne 0x10002eaf
push 0
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10002eaf
lea ecx, [esp + 0x68]
call fcn.10001880
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.100018c0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.10003523
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x90]
push eax
call fcn.10002200
add esp, 4
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.10001880
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.100018c0
mov ecx, dword [esp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10003523
mov esp, ebp
pop ebp
ret