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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4394ee
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x543040]
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 [0x54421c]
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 0x42d596
cmp dword [ecx + 0x14], 0xf
jbe 0x42d16f
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 0x42d1a6
test al, 0x10
jne 0x42d1d2
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 0x42d1d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x42d1d2
mov byte [ebp - 0x59], 0
jmp 0x42d540
mov ecx, dword [ebp - 0x30]
mov eax, edi
sub eax, ecx
cmp eax, 1
jb 0x42d59b
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 1
cmova eax, dword [ebp - 0x40]
push 0x4d0f40
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 0x42d280
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d276
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42d276
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
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 0x42d4ee
mov esi, dword [0x544218]
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.004215d0
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x10]
sub edi, ecx
cmp edi, 7
jb 0x42d5a0
cmp dword [eax + 0x14], 0xf
jbe 0x42d30e
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 0x42d3ad
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d3a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d44d
push ecx
push edx
call fcn.0043474f
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 0x42d402
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d3f8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d44d
push ecx
push edx
call fcn.0043474f
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 0x42d45d
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d453
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42d453
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
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 0x42d4bb
cmp ecx, 0xf
jbe 0x42d4b5
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d4ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d4de
push ecx
push edx
call fcn.0043474f
add esp, 8
mov byte [ebp - 0x59], 0
jmp 0x42d4fe
cmp ecx, 0xf
jbe 0x42d4ee
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d4e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42d4e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
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 0x42d52e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d524
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d566
push ecx
push edx
call fcn.0043474f
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 0x42d576
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d56c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42d56c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
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.00434711
mov esp, ebp
pop ebp
ret 8
call fcn.00403d10
call fcn.00403d10
call fcn.00403d10
int3