Function at 0x4177d5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x463214
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push str.DownloadFilesDirectly...
lea ecx, [esp + 0x20]
call fcn.0040130b
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
push 2
mov dword [esp + 0x4c], ebx
call fcn.0040fcf3
or dword [esp + 0x4c], 0xffffffff
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi]
push ebx
push eax
push ebx
mov dword [esp + 0x38], esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x4a6718]
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebx
jle 0x4179a5
push dword [esp + 0x1c]
mov ecx, 0x4a6710
call fcn.004062c5
mov edi, eax
mov eax, dword [edi]
mov dword [esp + 0x24], edi
cmp eax, ebx
je 0x417993
cmp dword [eax + 0x18], ebx
jne 0x417993
push esi
lea ecx, [esp + 0x1c]
call fcn.0040134f
mov dword [esp + 0x40], 1
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401175
mov eax, dword [edi]
lea ecx, [eax + 8]
lea eax, [esp + 0x18]
push eax
call fcn.004063a1
mov ebx, dword [ebp + 8]
mov ecx, edi
call fcn.0041510b
test eax, eax
je 0x41790b
push str.File_already_exist_and_valid:
lea ecx, [esp + 0x24]
call fcn.0040130b
mov byte [esp + 0x40], 2
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [esp + 0x28]
push eax
push 2
call fcn.0040f821
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov edi, dword [edi]
mov dword [edi + 0x18], 1
jmp 0x417980
mov eax, dword [edi]
add eax, 0xc
push eax
lea ecx, [esp + 0x1c]
mov edx, ebx
call fcn.004175cb
cmp dword [0x4a66c8], 0
jne 0x4179bd
test eax, eax
je 0x417a33
mov eax, dword [edi]
add eax, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00413bad
mov byte [esp + 0x40], 3
mov eax, dword [eax]
mov ecx, dword [edi]
mov edi, dword [ecx + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, eax
call fcn.0041e379
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
mov edi, eax
call fcn.004017c4
test edi, edi
jne 0x4179cd
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov esi, dword [esp + 0x2c]
mov dword [eax + 0x18], 1
or dword [esp + 0x40], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
xor ebx, ebx
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jl 0x417860
xor eax, eax
inc eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
jmp 0x4179a8
push str._invalid_after_BB_download
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004061c9
add esp, 0xc
push 0x1fc98
mov ecx, edi
mov edx, eax
mov esi, 0x4a6aac
mov byte [esp + 0x44], 4
call fcn.0040e316
mov byte [esp + 0x40], 1
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
and dword [eax + 0x18], 0
lea eax, [esp + 0x17]
push eax
push edi
mov eax, str.Signature_Validation_Error
mov ebx, 0x4a6608
mov byte [esp + 0x1f], 0
call fcn.0040646b
jmp 0x4179bd
push str.__BB_download_failed
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004061c9
add esp, 0xc
mov esi, eax
mov byte [esp + 0x40], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, esi
push 0x2240c
mov ecx, eax
mov esi, 0x4a6aac
call fcn.0040e316
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, dword [edi]
and dword [eax + 0x18], 0
jmp 0x4179bd