Function at 0x420b41
Capabilities:
Create directory

Disassembly:
push 0x30
mov eax, 0x478ac0
call fcn.0045be74
push str.DownloadFilesDirectly...
lea ecx, [ebp - 0x18]
call fcn.004020a6
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.004152d1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025d2
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi]
push ebx
push eax
push ebx
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, dword [0x4c47fc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0041fb92
push 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.0040db48
cmp edi, ebx
mov dword [ebp - 0x14], ebx
jle 0x420d52
push dword [ebp - 0x14]
mov ecx, 0x4c47f4
call fcn.0040b035
mov edi, eax
mov eax, dword [edi]
mov dword [ebp - 0x18], edi
cmp eax, ebx
je 0x420d43
cmp dword [eax + 0x18], ebx
jne 0x420d43
push esi
lea ecx, [ebp - 0x10]
call fcn.004020ea
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
add eax, 4
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401f27
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
add eax, 8
push ecx
mov ecx, eax
call fcn.00402573
mov ecx, dword [ebp + 8]
push ebx
mov ebx, edi
call fcn.0041c7e3
test eax, eax
jne 0x420caf
mov ecx, dword [ebp + 8]
push eax
call fcn.0041c7e3
test eax, eax
jne 0x420caf
mov eax, dword [edi]
push 0
push dword [ebp - 0x2c]
add eax, 0xc
push dword [ebp - 0x30]
push 1
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0042028c
cmp dword [0x4c47a8], 0
jne 0x420d5d
test eax, eax
je 0x420dca
mov eax, dword [edi]
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041aaea
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov ecx, dword [edi]
mov edi, dword [ecx + 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, eax
call fcn.004289ab
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004025d2
test esi, esi
jne 0x420d6c
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
jmp 0x420ce7
push str.File_already_exist_and_valid:
lea ecx, [ebp - 0x1c]
call fcn.004020a6
mov byte [ebp - 4], 2
mov eax, dword [edi]
push 0
add eax, 8
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
call fcn.00414e01
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [edi]
mov dword [eax + 0x18], 1
mov ebx, dword [0x4c4c30]
test ebx, ebx
je 0x420d32
push 0
call fcn.0040db48
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
mov edi, dword [ebx]
cdq
add dword [ebp - 0x30], eax
push 0
push 0x64
adc dword [ebp - 0x2c], edx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.0045f860
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edx
push eax
call fcn.00462aa0
push eax
mov ecx, ebx
call dword [edi + 0x188]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
xor ebx, ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x28]
jl 0x420bbd
xor eax, eax
inc eax
call fcn.0045bf4c
ret 4
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025d2
xor eax, eax
jmp 0x420d55
push str._invalid_after_BB_download
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040adb6
add esp, 0xc
push 0x1fc98
mov ecx, esi
mov edx, eax
mov ebx, 0x4c4bf0
mov byte [ebp - 4], 4
call fcn.0041384f
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and dword [eax + 0x18], 0
lea eax, [ebp + 0xb]
push eax
push esi
mov edi, str.Signature_Validation_Error
mov ebx, 0x4c46e8
mov byte [ebp + 0xb], 0
call fcn.0040b14d
jmp 0x420d5d
push str.__BB_download_failed
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040adb6
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x2240c
mov ecx, eax
mov edx, esi
mov ebx, 0x4c4bf0
call fcn.0041384f
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004025d2
mov eax, dword [edi]
and dword [eax + 0x18], 0
jmp 0x420d5d