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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x41a018]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x41a018]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41133b
mov eax, dword [0x41a030]
mov edx, dword [eax + 0xc]
mov ecx, 0x41a030
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x268], 0
test edi, edi
je 0x4112ce
test edi, 0xffff0000
jne 0x4112ce
movzx edi, di
push edi
call fcn.00407340
add esp, 4
test eax, eax
je 0x4112dd
push eax
mov eax, edi
lea edi, [esp + 0x18]
call fcn.0040a870
jmp 0x4112d9
mov ebx, edi
lea eax, [esp + 0x14]
call fcn.0040b770
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x268], 1
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
jne 0x4112fa
call fcn.00411540
push ebx
call edi
test eax, eax
jne 0x411309
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x411342
mov dword [esp + 0x268], 0xffffffff
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41133b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x41150e
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0040b6e0
mov byte [esp + 0x268], 2
mov edx, dword [esp + 0x18]
push edx
call fcn.004110f0
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
ja 0x4113aa
mov byte [esp + 0x268], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411393
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x411322
push 0x230
lea ecx, [esp + 0x28]
push edi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xffffffffffffffff
lea edx, [esp + 0x28]
mov eax, esi
call fcn.004111e0
mov eax, dword [esp + 0x28]
add esp, 4
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, edi
jle 0x4114b9
jmp 0x4113e3
xor edi, edi
push 0x230
lea edx, [esp + 0x28]
push edi
push edx
call sub.MSVCR100.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x24], edi
mov word [esp + 0x28], ax
mov dword [esp + 0x250], edi
cmp dword [esi], 1
je 0x411419
mov dword [0x41a658], 0x80000
jmp 0x41142b
mov ecx, dword [esi + 4]
push ebx
lea edx, [esp + 0x28]
call fcn.00410600
mov dword [0x41a658], eax
mov edx, dword [0x41a030]
mov eax, dword [edx + 0xc]
mov ecx, 0x41a030
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x268], 3
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x416134
lea edi, [esp + 0x28]
call fcn.0040af30
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp dword [esi], 1
je 0x41147a
mov dword [0x41a658], 0x80000
jmp 0x41148a
mov ecx, dword [esi + 4]
push ebx
mov edx, edi
call fcn.00410d90
mov dword [0x41a658], eax
lea eax, [edi - 0x10]
mov byte [esp + 0x268], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x4113e1
mov byte [esp + 0x268], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4114e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x268], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41150c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00411688
mov esp, ebp
pop ebp
ret