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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45801c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1240
call fcn.00447af0
mov eax, dword [0x477af4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1238], esi
mov ebx, edx
call fcn.0040a515
test ebx, ebx
je 0x40c023
push ebx
call fcn.00443826
pop ecx
cmp eax, 4
jb 0x40c023
xor eax, eax
mov word [ebp - 0x1c], ax
push 0x11fe
lea edi, [ebp - 0x1a]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x1220], ax
lea eax, [ebp - 0x121e]
push eax
call fcn.00444550
add esp, 0xc
push ebx
lea ecx, [ebp - 0x1224]
call fcn.00401db9
and dword [ebp - 4], 0
push 0x5c
push 0x2f
lea ebx, [ebp - 0x1224]
call fcn.00409d6f
lea eax, [ebp - 0x122c]
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
lea ecx, [ebp - 0x1224]
call fcn.00401ff6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x40bd0e
test ecx, ecx
jge 0x40bcfe
push 0x80070057
call fcn.00403632
movzx eax, word [eax]
mov byte [ebp - 0x1225], 0
cmp ax, 0x5c
je 0x40bd14
mov byte [ebp - 0x1225], bl
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.004034fb
cmp byte [ebp - 0x1225], 0
je 0x40bd36
lea edi, [ebp - 0x1224]
call fcn.0040a340
push 0
push 0
lea eax, [ebp - 0x1220]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1224]
call fcn.00445555
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1224]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.004034fb
lea ecx, [ebp - 0x1250]
call fcn.004153a2
lea eax, [ebp - 0x1220]
push eax
lea ecx, [ebp - 0x1230]
mov dword [ebp - 4], ebx
call fcn.00401db9
mov eax, ebx
lea edx, [ebp - 0x122c]
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 2
call fcn.00402040
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jne 0x40bdb6
test ecx, ecx
jl 0x40bcf4
movzx eax, word [eax]
cmp ax, 0x5c
je 0x40bdb8
xor bl, bl
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.004034fb
test bl, bl
je 0x40be08
mov eax, dword [ebp - 0x1230]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x122c]
push ecx
dec eax
lea ecx, [ebp - 0x1230]
call fcn.00401ff6
push eax
lea ecx, [ebp - 0x1230]
mov byte [ebp - 4], 3
call fcn.00402372
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x122c]
add ecx, 0xfffffff0
call fcn.004034fb
mov esi, 0x47aa78
push esi
lea ecx, [ebp - 0x1224]
call fcn.00402325
mov edi, 0x464fdc
push edi
lea eax, [ebp - 0x1234]
mov byte [ebp - 4], 4
and dword [ebp - 0x122c], 0
push eax
lea ecx, [ebp - 0x122c]
lea ebx, [ebp - 0x1230]
call fcn.00401e7c
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1224]
call fcn.00402372
mov ecx, dword [ebp - 0x1234]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, dword [ebp - 0x1224]
cmp dword [eax - 0xc], 0
je 0x40bf0d
lea eax, [ebp - 0x1224]
push eax
lea ecx, [ebp - 0x1250]
mov byte [ebp - 4], 6
call fcn.004020e3
push edi
lea eax, [ebp - 0x1234]
push eax
lea ecx, [ebp - 0x122c]
lea ebx, [ebp - 0x1230]
mov dword [ebp - 4], 4
call fcn.00401e7c
mov byte [ebp - 4], 8
jmp 0x40be46
lea ecx, [ebp - 0x1250]
call fcn.00402507
push dword [ebp - 0x1250]
call fcn.0044380c
pop ecx
mov eax, esi
jmp 0x40c032
lea ecx, [eax - 0x10]
call fcn.004034fb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1230]
add ecx, 0xfffffff0
call fcn.004034fb
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
test eax, 0xfffffffc
jne 0x40bf51
mov esi, dword [ebp - 0x1238]
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esi + 0x10]
jmp 0x40beef
push esi
lea ecx, [ebp - 0x1224]
call fcn.00402325
push 0x465268
lea ecx, [ebp - 0x1224]
mov byte [ebp - 4], 9
call fcn.00402555
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1224]
call fcn.00402555
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
xor esi, esi
sar eax, 2
test eax, eax
jbe 0x40c00d
push edi
lea ecx, [ebp - 0x1224]
call fcn.00402555
push esi
lea ecx, [ebp - 0x1250]
call fcn.0040c8ae
push eax
lea ecx, [ebp - 0x1224]
call fcn.00409fa0
mov ebx, dword [ebp - 0x1224]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bfd6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40bfec
mov eax, dword [ebp - 0x1240]
sub eax, dword [ebp - 0x1244]
inc esi
sar eax, 2
cmp esi, eax
jb 0x40bf95
jmp 0x40c013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1238]
call fcn.0040a783
mov esi, dword [eax + 0x10]
lea ecx, [ebx - 0x10]
call fcn.004034fb
jmp 0x40beef
mov ebx, dword [ebp - 0x1224]
mov esi, dword [ebp - 0x1238]
call fcn.0040a515
mov esi, dword [esi + 0x10]
jmp 0x40c000
mov eax, dword [esi]
push 0x80070057
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443817
leave
ret