Function at 0x4222d5
Capabilities:
Create directory

Disassembly:
push 0x34
mov eax, 0x4aec40
call fcn.0046af88
mov esi, ecx
mov dword [ebp - 0x3c], esi
push str.DownloadFilesDirectly...
lea ecx, [ebp - 0x1c]
call fcn.00402829
xor ebx, ebx
lea edx, [ebp - 0x1c]
push ebx
push 2
pop ecx
mov dword [ebp - 4], ebx
call fcn.00414071
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402e64
push ebx
push dword [esi + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, dword [0x518e6c]
xorps xmm0, xmm0
mov dword [ebp - 0x40], edi
movlpd qword [ebp - 0x2c], xmm0
call fcn.00421279
push 1
push ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
call fcn.0040c0e1
test edi, edi
jle 0x422558
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
push ebx
mov ecx, 0x518e64
call fcn.0040a0f5
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x42254e
cmp dword [eax + 0x18], 0
jne 0x42254e
mov ecx, dword [esi + 8]
sub ecx, 0x10
push ecx
call fcn.00402d9f
add eax, 0x10
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
mov eax, dword [edi]
mov eax, dword [eax + 4]
push dword [eax - 0xc]
push eax
call fcn.004025c6
mov ecx, dword [edi]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ecx + 8]
call fcn.00402e14
push 1
push edi
mov ecx, esi
call fcn.0041ddf7
test eax, eax
jne 0x4224a0
push eax
push edi
mov ecx, esi
call fcn.0041ddf7
test eax, eax
jne 0x4224a0
push dword [ebp - 0x1c]
mov eax, dword [edi]
mov ecx, esi
push dword [ebp - 0x18]
add eax, 0xc
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004219c6
cmp dword [0x518e18], 0
jne 0x4225ae
push 0
test eax, eax
je 0x422561
push str.DownloadPayloadSuccessWinINet
call fcn.004032da
mov eax, dword [edi]
mov ecx, 0x518e5c
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043cf67
mov byte [ebp - 4], 3
mov edx, dword [edi]
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
call fcn.0042b4d8
pop ecx
mov byte [ebp - 4], 1
mov esi, eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00402e64
test esi, esi
je 0x4224d5
push str._invalid_after_BB_download
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402459
add esp, 0xc
push esi
push eax
push 0x1fc98
mov ecx, 0x519278
mov byte [ebp - 4], 4
call fcn.00411fc6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [edi]
push 0
push str.SignatureValidationError
and dword [eax + 0x18], 0
call fcn.004032da
jmp 0x4225ae
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x28]
call fcn.00402829
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
mov eax, dword [edi]
push 0
add eax, 8
push eax
push 2
pop ecx
call fcn.00413940
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00402e64
mov eax, dword [edi]
mov dword [eax + 0x18], 1
mov esi, dword [0x5192bc]
mov dword [ebp - 0x38], esi
test esi, esi
je 0x42253c
push 0
push ecx
call fcn.0040c0e1
mov eax, dword [edi]
mov ecx, dword [ebp - 0x18]
mov edi, dword [esi]
push 0x64
mov eax, dword [eax + 0x14]
cdq
add ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
adc eax, edx
pop edx
mov dword [ebp - 0x1c], eax
mul edx
push 0x64
mov esi, eax
mov eax, ecx
pop ecx
push dword [ebp - 0x30]
mul ecx
push dword [ebp - 0x34]
add esi, edx
push esi
push eax
call fcn.004aa5c0
mov esi, dword [edi + 0x1b0]
mov ecx, esi
push eax
call dword [0x4b97ec]
mov ecx, dword [ebp - 0x38]
call esi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov esi, dword [ebp - 0x3c]
inc ebx
cmp ebx, dword [ebp - 0x40]
jl 0x422357
xor eax, eax
inc eax
call fcn.0046af51
ret
push str.DownloadPayloadErrorWinINet
call fcn.004032da
push str.__BB_download_failed
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402459
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x2240c
mov ecx, 0x519278
call fcn.00411fc6
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00402e64
mov eax, dword [edi]
and dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402e64
xor eax, eax
jmp 0x42255b