Function at 0x421830
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48eee0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x4bf454]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x44]
call eax
test al, al
jne 0x421b3d
mov esi, dword [edi + 0x3c]
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x42187a
mov eax, esi
jmp 0x42187f
call fcn.00425c20
cmp dword [eax + 4], 0
jne 0x4218e4
lea ecx, [ebp - 0x30]
call fcn.0044cc70
mov dword [ebp - 4], 0
lea ebx, [edi + 0x70]
mov al, byte [esi + 0x20]
mov ecx, str.file
and al, 1
mov eax, str.folder
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.00426960
push eax
lea eax, [ebp - 0x30]
push str.Downloading__s__s
push eax
call fcn.0044d0b0
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00426960
push eax
mov ecx, edi
call fcn.00424fe0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cd00
jmp 0x4218e7
lea ebx, [edi + 0x70]
test byte [esi + 0x20], 1
mov ecx, ebx
je 0x4219d0
call fcn.00426960
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.0044cc70
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
mov eax, dword [ebp - 0x30]
push esi
call dword [eax + 4]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 2
call fcn.0041f6d0
test al, al
je 0x421932
lea ecx, [ebp - 0x30]
call fcn.0041f7c0
test al, al
jne 0x42199f
push 0
lea ecx, [ebp - 0x30]
call fcn.00426960
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42199f
lea ecx, [ebp - 0x40]
call fcn.0044cc70
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00426960
push eax
lea eax, [ebp - 0x40]
push str.Error:_failed_to_create_local_folder__s
push eax
call fcn.0044d0b0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00426960
push eax
mov ecx, edi
call fcn.00424f40
mov ecx, edi
call fcn.00421b90
lea ecx, [ebp - 0x40]
call fcn.0044cd00
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cd00
jmp 0x421b30
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x60]
mov al, byte [eax + 0x5c]
mov byte [ebp - 0x14], al
push dword [ebp - 0x14]
call fcn.00426960
mov ecx, dword [edi + 0x30]
push eax
call fcn.00425e90
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cd00
jmp 0x421b30
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
call fcn.00426960
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0044cc70
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x40]
push esi
call dword [eax + 4]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 5
call fcn.0041f6d0
test al, al
je 0x421aa3
mov eax, dword [edi + 0x3c]
lea ecx, [ebp - 0x68]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004261a0
mov byte [ebp - 4], 6
mov ecx, ebx
mov eax, dword [edi + 0x80]
mov esi, dword [eax]
call fcn.00426960
mov ebx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
call dword [esi + 4]
sub eax, 1
je 0x421b56
sub eax, 1
je 0x421a85
sub eax, 1
jne 0x421a97
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x44]
call eax
test al, al
jne 0x421b6e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x40]
jmp 0x421b6e
mov eax, dword [ebp - 0x68]
mov dword [edi + 0xa0], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 0xa4], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0044cd00
mov eax, dword [edi + 0xa0]
lea ecx, [edi + 0x60]
mov ebx, dword [edi + 0xa4]
mov dword [ebp - 0x14], eax
call fcn.00426960
mov edi, dword [edi + 0x30]
mov esi, eax
mov edx, dword [edi + 4]
lea ecx, [edx + 8]
neg edx
sbb edx, edx
and edx, ecx
lea ecx, [ebp - 0x20]
push edx
call fcn.0044c870
push ebx
push dword [ebp - 0x14]
mov byte [ebp - 4], 7
push esi
push str.Sending_download_request_with_parameters:_n_tpath___s_n_toffset___ld_n
push dword [edi]
call fcn.00443c30
mov ecx, dword [edi + 4]
add esp, 0x14
push 0xfc00010c
call fcn.00443150
mov ecx, dword [edi + 4]
push esi
call fcn.004432a0
mov ecx, dword [edi + 4]
push ebx
push dword [ebp - 0x14]
call fcn.004431e0
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x20]
call fcn.0044c890
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cd00
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x44]
call eax
test al, al
je 0x421b44
mov ecx, edi
call fcn.00421c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
add dword [edi + 0x90], eax
adc dword [edi + 0x94], ecx
mov ecx, edi
call fcn.00421b90
lea ecx, [ebp - 0x54]
call fcn.0044cd00
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0044cd00
jmp 0x421b30