Function at 0x40ae1f
Capabilities:
Check if file exists
Create directory
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42596b
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x430050]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x430050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x94]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], ebx
je 0x40af86
mov eax, dword [ebx + 0x98]
cmp dword [eax - 0xc], edi
je 0x40af86
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aea2
mov ebx, dword [ebx + 0x98]
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x40af86
mov eax, dword [0x4322e4]
mov ebx, 0x4322e4
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], edi
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edi, 0x104
mov byte [esp + 0x78], 1
mov eax, dword [esi]
push edi
push edi
lea esi, [esp + 0x24]
mov dword [esp + 0x34], eax
call fcn.004058ab
push eax
push edi
push edi
lea esi, [esp + 0x24]
call fcn.004058ab
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push dword [esp + 0x4c]
call fcn.004103ab
mov eax, dword [esp + 0x38]
add esp, 0x24
call fcn.0040534a
mov edx, esi
call fcn.004054f9
mov eax, dword [esp + 0x1c]
call fcn.0040534a
lea edx, [esp + 0x1c]
call fcn.004054f9
push 6
pop ecx
mov esi, str._:____
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
cmp word [esp + 0x40], di
je 0x40af68
movzx eax, word [esp + 0x40]
push eax
lea esi, [esp + 0x18]
call fcn.00407094
test eax, eax
jl 0x40af5d
inc eax
mov ecx, esi
call fcn.0040bcbd
movzx eax, word [esp + edi*2 + 0x42]
inc edi
test ax, ax
jne 0x40af47
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
jne 0x40afa6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
lea eax, [edi - 0x10]
call fcn.004054c6
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0040e8f3
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
add esi, 0x9c
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x40afc7
mov eax, esi
lea edi, [esp + 0x14]
call fcn.00404206
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x98]
sub eax, 0x10
call fcn.00404893
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x78], 2
push dword [edi - 0xc]
lea eax, [esp + 0x28]
push edi
call fcn.00404b50
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40b020
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40b003
sub eax, edx
sar eax, 1
je 0x40b020
push dword [esi - 0xc]
lea eax, [esp + 0x28]
push esi
call fcn.00404b50
push 0x42ae10
lea eax, [esp + 0x28]
push eax
call fcn.00406b69
lea eax, [esp + 0x20]
push str..cfg
push eax
lea ecx, [esp + 0x2c]
call fcn.0040710e
mov byte [esp + 0x80], 3
mov edi, dword [esp + 0x2c]
add esp, 4
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x3c], esp
mov esi, esp
mov dword [esp + 0x30], edi
call fcn.00404893
push dword [esp + 0x1c]
add eax, 0x10
mov dword [esi], eax
call fcn.0040b65e
mov byte [esp + 0x2b], al
mov eax, dword [0x4322e4]
mov ecx, ebx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x78], 4
and dword [esp + 0x34], 0
mov eax, 0x6978
push 0xa
pop esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x2328
mov dword [esp + 0x64], 0xbb8
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
add ebx, 0x94
mov eax, dword [ebx]
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x44], ebx
call fcn.00405f16
add esp, 0xc
test al, al
je 0x40b0f8
cmp dword [esp + 0x34], 0
ja 0x40b107
dec esi
js 0x40b10b
push dword [esp + esi*4 + 0x40]
call dword [0x4271b0]
jmp 0x40b0ca
test esi, esi
jge 0x40b186
cmp dword [0x43159c], 0xffffffff
je 0x40b14f
and dword [esp + 0x2c], 0
push str.CFileDownloadJob_StartJob_GetFileContentLength_try_10_times_but_Failed_n
lea eax, [esp + 0x1c]
push eax
call fcn.00403fc0
push 0
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push dword [eax - 0xc]
push eax
push dword [0x43159c]
call dword [0x42707c]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, edi
call fcn.004054c6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40af81
cmp byte [esp + 0x2b], 0
mov esi, dword [esp + 0x30]
jne 0x40b25e
cmp dword [esi - 0xc], 0
je 0x40b22c
lea eax, [esp + 0x30]
mov edi, ebx
call fcn.00404206
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00404893
lea ebx, [eax + 0x10]
mov dword [esp + 0x3c], ebx
push 0x2f
push ebx
mov byte [esp + 0x80], 5
call fcn.004105be
test eax, eax
pop ecx
pop ecx
je 0x40b21b
sub eax, ebx
sar eax, 1
js 0x40b21b
inc eax
lea ecx, [esp + 0x3c]
call fcn.0040bcbd
mov ebx, dword [esp + 0x3c]
push str.error.html
push ebx
call fcn.0040ed18
test eax, eax
pop ecx
pop ecx
jne 0x40b21b
lea eax, [ebx - 0x10]
call fcn.004054c6
lea eax, [esi - 0x10]
call fcn.004054c6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x2c]
jmp 0x40b169
lea eax, [ebx - 0x10]
mov byte [esp + 0x78], 4
call fcn.004054c6
mov edi, dword [esp + 0x2c]
push dword [esp + 0x24]
mov ebx, dword [0x4270fc]
call ebx
push dword [esp + 0x20]
call ebx
push ecx
mov eax, edi
mov dword [esp + 0x30], esp
mov ebx, esp
call fcn.00404893
push dword [esp + 0x1c]
add eax, 0x10
mov dword [ebx], eax
call fcn.0040b574
mov ebx, dword [esp + 0x38]
push dword [esp + 0x34]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.0040b300
test al, al
jne 0x40b280
lea eax, [esi - 0x10]
jmp 0x40b156
push dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0040b746
test al, al
lea eax, [esi - 0x10]
je 0x40b156
call fcn.004054c6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, edi
call fcn.004054c6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.004054c6
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004054c6
mov al, 1
jmp 0x40af88