Function at 0x402c30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440cff
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x450398]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x450398]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x10], edi
cmp esi, ebx
je 0x4030a1
cmp edi, ebx
je 0x4030a1
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402cb1
push ebx
push edi
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, ebx
je 0x402cb1
cmp eax, 0xb7
je 0x402cb1
lea eax, [ebx + 3]
jmp 0x4030a6
mov edi, 7
xor eax, eax
mov dword [esp + 0x160], edi
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], ax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x17c], ebx
call fcn.00414b70
mov byte [esp + 0x178], 1
xor edx, edx
mov eax, esi
mov word [esp + 0xc0], dx
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402d04
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0xc4]
call fcn.00417550
lea eax, [esp + 0x130]
push eax
mov ebx, esi
mov byte [esp + 0x17c], 2
call fcn.004186d0
add esp, 4
mov ecx, eax
lea eax, [esp + 0xf8]
mov byte [esp + 0x178], 3
call fcn.00418780
mov edi, eax
mov byte [esp + 0x178], 4
call fcn.00416220
mov esi, 8
cmp dword [esp + 0x10c], esi
jb 0x402d7f
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.00426798
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov byte [esp + 0x178], 2
mov dword [esp + 0x10c], edi
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], dx
cmp dword [esp + 0x144], esi
jb 0x402dbf
mov eax, dword [esp + 0x130]
push eax
call fcn.00426798
add esp, 4
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [esp + 0xdc], cx
mov ecx, eax
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402de0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0xe0]
call fcn.00417550
lea edx, [esp + 0x130]
push edx
mov ebx, esi
mov byte [esp + 0x17c], 5
call fcn.004186d0
add esp, 4
mov ecx, eax
lea eax, [esp + 0xf8]
mov byte [esp + 0x178], 6
call fcn.00418780
mov edi, eax
mov byte [esp + 0x178], 7
call fcn.00416220
mov ebx, 8
cmp dword [esp + 0x10c], ebx
jb 0x402e59
mov eax, dword [esp + 0xf8]
push eax
call fcn.00426798
add esp, 4
xor ecx, ecx
mov byte [esp + 0x178], 5
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], 0
mov word [esp + 0xf8], cx
cmp dword [esp + 0x144], ebx
jb 0x402e9a
mov edx, dword [esp + 0x130]
push edx
call fcn.00426798
add esp, 4
push 0x446264
push ecx
push 0x446274
push ecx
lea eax, [esp + 0xec]
push eax
push ecx
push 0x446274
push ecx
lea ecx, [esp + 0xe0]
push ecx
push ecx
lea edx, [esp + 0x4c]
push 0x446278
push edx
call fcn.004187c0
add esp, 0xc
push eax
call fcn.00418a90
add esp, 0xc
push eax
call fcn.004187c0
add esp, 0xc
push eax
call fcn.00418a90
add esp, 0xc
push eax
call fcn.004187c0
add esp, 0xc
push eax
call fcn.004187c0
add esp, 8
lea ecx, [esp + 0x130]
lea eax, [esp + 0x14]
call fcn.00414c10
mov edi, eax
lea esi, [esp + 0x14c]
mov byte [esp + 0x178], bl
call fcn.00416220
cmp dword [esp + 0x144], ebx
jb 0x402f3b
mov eax, dword [esp + 0x130]
push eax
call fcn.00426798
add esp, 4
xor eax, eax
mov esi, 0xf
mov dword [esp + 0x10], eax
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], eax
mov byte [esp + 0x114], al
lea ecx, [esp + 0x10]
push ecx
lea ebx, [esp + 0x118]
lea ecx, [esp + 0x150]
mov byte [esp + 0x17c], 9
call fcn.00402980
xor ebx, ebx
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x402fd6
cmp dword [esp + 0x124], ebx
je 0x402fd6
lea ecx, [esp + 0x114]
call fcn.00414440
lea esi, [esp + 0xdc]
call fcn.00414a40
lea esi, [esp + 0xc0]
call fcn.00414a40
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], bl
call fcn.004030d0
lea esi, [esp + 0x14c]
call fcn.00414a40
xor eax, eax
jmp 0x4030a6
cmp dword [esp + 0x128], 0x10
jb 0x402ff0
mov edx, dword [esp + 0x114]
push edx
call fcn.00426798
add esp, 4
mov dword [esp + 0x128], esi
mov esi, 8
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
cmp dword [esp + 0xf0], esi
jb 0x403023
mov eax, dword [esp + 0xdc]
push eax
call fcn.00426798
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0xf0], edi
mov dword [esp + 0xec], ebx
mov word [esp + 0xdc], cx
cmp dword [esp + 0xd4], esi
jb 0x403059
mov edx, dword [esp + 0xc0]
push edx
call fcn.00426798
add esp, 4
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], ax
mov byte [esp + 0x178], bl
call fcn.004030d0
cmp dword [esp + 0x160], esi
jb 0x40309a
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.00426798
add esp, 4
mov eax, 4
jmp 0x4030a6
mov eax, 1
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004267a3
mov esp, ebp
pop ebp
ret