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

Disassembly:
push 0xffffffffffffffff
push 0x421f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x4c]
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea eax, [esi - 0xc]
mov dword [esp + 0x44], 0
jl 0x41126f
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x411282
mov eax, dword [0x42c054]
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.00401ae0
mov ebp, dword [0x42c054]
mov dword [esp + 0x10], ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
mov byte [esp + 0x48], 2
call ebx
test eax, eax
jne 0x411840
push 3
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x54]
call fcn.004110a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 3
call fcn.00410960
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42c058]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x44], 2
je 0x4112f9
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4112f9
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov esi, dword [esp + 0x4c]
mov eax, dword [esi - 8]
test eax, eax
jl 0x4113fa
push 0x423688
push esi
call fcn.00417268
add esp, 8
test eax, eax
je 0x4113fa
sub eax, esi
sar eax, 1
mov edi, eax
test edi, edi
jle 0x4113fd
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
call fcn.004110a0
mov esi, eax
push 3
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 4
call fcn.004110a0
push esi
push eax
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x50], 5
call fcn.00411180
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 6
call fcn.00401a80
mov eax, dword [esp + 0x18]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41139d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41139d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4113c8
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4113c8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x44], 2
je 0x41140b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41140b
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
jmp 0x41140b
or edi, 0xffffffff
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00401a80
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
call fcn.004110a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 7
call fcn.00410960
mov eax, dword [esp + 0x20]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x44], 2
je 0x41145b
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x41145b
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov ebp, dword [esp + 0x10]
push ebp
call ebx
test eax, eax
jne 0x41146e
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [esp + 0x4c]
mov eax, dword [esi - 8]
test eax, eax
jl 0x411840
push 0x423688
push esi
call fcn.00417268
add esp, 8
test eax, eax
je 0x411840
sub eax, esi
sar eax, 1
test eax, eax
jne 0x411840
push 1
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x54]
call fcn.004110a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 8
call fcn.00410960
mov eax, dword [esp + 0x20]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x44], 2
je 0x4114f4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4114f4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov esi, dword [esp + 0x4c]
mov eax, dword [esi - 8]
test eax, eax
jl 0x411713
push 0x423688
push esi
call fcn.00417268
add esp, 8
test eax, eax
je 0x411713
sub eax, esi
sar eax, 1
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
jle 0x411713
push 0x4257b0
lea ecx, [esp + 0x2c]
call fcn.00410af0
push esi
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 9
call fcn.004110a0
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x50], 0xa
call fcn.00411180
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x50], 0xb
call fcn.00411180
mov edi, eax
mov esi, dword [edi]
cmp ebp, esi
mov byte [esp + 0x44], 0xc
je 0x41160e
mov eax, dword [ebp - 0xc]
lea ebx, [ebp - 0xc]
test eax, eax
mov eax, dword [0x42c058]
jge 0x4115a0
lea ecx, [ebp - 0xc]
cmp ecx, eax
jne 0x4115a7
mov ecx, dword [esi - 0xc]
test ecx, ecx
jge 0x4115e3
mov ebx, dword [esi - 8]
push ebx
lea ecx, [esp + 0x14]
call fcn.00401670
test eax, eax
mov ebp, dword [esp + 0x10]
je 0x41160e
lea eax, [ebx + ebx]
lea edx, [eax + 2]
cmp edx, eax
jb 0x4115d8
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
mov word [eax + ebp], 0
jmp 0x41160e
add ebp, 0xfffffff4
cmp ebp, eax
je 0x4115fe
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4115fe
push ebx
call fcn.00415965
add esp, 4
mov ebp, dword [edi]
lea eax, [ebp - 0xc]
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x42c058]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41163f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41163f
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41166a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41166a
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411695
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x411695
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x44], 2
je 0x4116be
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x4116be
push esi
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x54]
call fcn.004110a0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0xd
call fcn.00410960
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x44], 2
je 0x411834
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x411834
mov eax, dword [esp + 0x2c]
jmp 0x411828
push 0x423688
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0040e010
lea ecx, [esp + 0x4c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x50], 0xe
call fcn.00411180
mov edi, eax
mov esi, dword [edi]
cmp ebp, esi
mov byte [esp + 0x44], 0xf
je 0x4117d1
mov eax, dword [ebp - 0xc]
lea ebx, [ebp - 0xc]
test eax, eax
mov eax, dword [0x42c058]
jge 0x411763
lea ecx, [ebp - 0xc]
cmp ecx, eax
jne 0x41176a
mov ecx, dword [esi - 0xc]
test ecx, ecx
jge 0x4117a6
mov ebx, dword [esi - 8]
push ebx
lea ecx, [esp + 0x14]
call fcn.00401670
test eax, eax
mov ebp, dword [esp + 0x10]
je 0x4117d1
lea eax, [ebx + ebx]
lea edx, [eax + 2]
cmp edx, eax
jb 0x41179b
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], ebx
mov word [eax + ebp], 0
jmp 0x4117d1
add ebp, 0xfffffff4
cmp ebp, eax
je 0x4117c1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4117c1
push ebx
call fcn.00415965
add esp, 4
mov ebp, dword [edi]
lea eax, [ebp - 0xc]
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x30]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411800
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411800
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x34]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x44], 2
je 0x411834
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411834
mov eax, dword [esp + 0x34]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x411462
mov eax, dword [0x42c058]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [ebp - 0xc]
cmp ecx, eax
je 0x411865
add ebp, 0xfffffff4
push ebp
call ebx
test eax, eax
jg 0x411865
push ebp
call fcn.00415965
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [0x42c058]
lea edx, [edi - 0xc]
cmp edx, eax
je 0x411888
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x411888
push edi
call fcn.00415965
add esp, 4
mov ecx, dword [0x42c058]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x4118a8
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x4118a8
push esi
call fcn.00415965
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret