Function at 0x42b790
Capabilities:
Check if file exists
Create directory
Download url
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4378fe
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4b3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x4b421c]
mov edi, accept
mov eax, dword [ebp + 0xc]
add ecx, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov eax, edi
mov dword [ebp - 0x64], esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 6
jb 0x42bc16
cmp dword [ecx + 0x14], 0xf
jbe 0x42b7ef
mov ecx, dword [ecx]
push 6
push str._fonts
push edx
push ecx
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x40]
call fcn.0040aa70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42b826
test al, 0x10
jne 0x42b852
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 0
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42b852
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x42b852
mov byte [ebp - 0x59], 0
jmp 0x42bbc0
mov ecx, dword [ebp - 0x30]
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x42bc1b
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 1
cmova eax, dword [ebp - 0x40]
push 0x43bc70
push ecx
push eax
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x80]
call fcn.0040aa70
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.004078f0
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x42b900
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42b8f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42b8f6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x70], 0
cmova eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42bb6e
mov esi, dword [0x4b4218]
lea ecx, [ebp - 0xb0]
push 7
xorps xmm0, xmm0
mov dword [ebp - 0xa0], eax
push str.CDN_API
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], eax
call fcn.00405d80
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [esi + 4]
call fcn.00420da0
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x10]
sub edi, ecx
cmp edi, 7
jb 0x42bc20
cmp dword [eax + 0x14], 0xf
jbe 0x42b98e
mov eax, dword [eax]
push 7
push str._fonts_
push ecx
push eax
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x98]
call fcn.0040aa70
push dword [ebp - 0x64]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 6
call fcn.004078f0
mov dword [ebp - 0x48], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x42ba2d
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42ba23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bacd
push ecx
push edx
call fcn.00432cef
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x42ba82
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42ba78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bacd
push ecx
push edx
call fcn.00432cef
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
cmp ecx, 0xf
jbe 0x42badd
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42bad3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42bad3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push 0
cmova ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
push 0
cmova eax, dword [ebp - 0x58]
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 0x44]
test eax, eax
jns 0x42bb3b
cmp ecx, 0xf
jbe 0x42bb35
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42bb2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bb5e
push ecx
push edx
call fcn.00432cef
add esp, 8
mov byte [ebp - 0x59], 0
jmp 0x42bb7e
cmp ecx, 0xf
jbe 0x42bb6e
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42bb64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42bb64
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
push dword [ebp - 0x68]
lea eax, [ebp - 0x28]
push eax
call fcn.004192a0
mov byte [ebp - 0x59], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x42bbae
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42bba4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42bbe6
push ecx
push edx
call fcn.00432cef
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x42bbf6
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42bbec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42bbec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00432cef
add esp, 8
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00432cb1
mov esp, ebp
pop ebp
ret 8
call fcn.00403d10
call fcn.00403d10
call fcn.00403d10
int3