Function at 0x100029b0
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.1000309a
push eax
call fcn.100030eb
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.10002820
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.10003020
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 0x10002a60
sub eax, edx
push eax
lea ecx, [esp + 0x19c]
push ecx
lea ecx, [esp + 0x54]
call fcn.10001bc0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10002920
add esp, 8
test al, al
sete bl
cmp dword [esp + 0x64], 0x10
jb 0x10002aa6
mov ecx, dword [esp + 0x50]
push ecx
call fcn.10002f39
add esp, 4
test bl, bl
je 0x10002aee
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x10002abd
push eax
call fcn.10002f39
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.10002f39
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.1000311f
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x1c]
cmp eax, 5
ja 0x10002b00
call fcn.10003809
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 0x10002b6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10002b31
push eax
call fcn.10002f39
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.10002f39
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.1000311f
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 0x10002d4c
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10002c5b
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x34], 0x113
jne 0x10002c2c
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x38], eax
jne 0x10002c42
call fcn.10001260
test eax, eax
je 0x10002c22
mov ecx, dword [0x1000e3f4]
mov edx, dword [0x1000e3f8]
mov ax, word [0x1000e3fc]
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 0x10002c42
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x10002c42
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 0x10002ba4
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.10003020
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
call fcn.100030fd
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 0x1000e368
mov esi, eax
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.10003ce9
add esp, 0xc
cmp esi, 0xffffffff
je 0x10002c90
lea ecx, [esp + 0x68]
push ecx
call fcn.10001fd0
mov eax, dword [esp + 0x70]
add esp, 4
cmp dword [esp + 0x80], 0x10
jae 0x10002cff
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x94]
push 0x104
push edx
call fcn.10003ce9
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call edi
cmp eax, 0xffffffff
jne 0x10002d6d
push 0
lea ecx, [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10002d6d
lea ecx, [esp + 0x68]
call fcn.10001760
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.100017e0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.1000311f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x90]
push eax
call fcn.100020e0
add esp, 4
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.10001760
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.100017e0
mov ecx, dword [esp + 0x2a4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1000311f
mov esp, ebp
pop ebp
ret