Function at 0x4102b0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553ffd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push str.ftp:__85.222.189.119_tinyrcon_CTF_custom_maps_auto_downloader.exe
mov dword [ebp - 0x5c], eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0x41
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.ftp:__85.222.189.119_tinyrcon_CTF_custom_maps_auto_downloader.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00419b60
mov dword [ebp - 4], 0
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmp esi, 7
mov dword [ebp - 0x54], eax
cmova edi, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
test eax, eax
je 0x41035a
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2f
lea eax, [edx + ecx*2]
je 0x410354
cmp eax, edx
je 0x41035a
sub eax, 2
cmp word [eax], 0x2f
jne 0x410347
sub eax, edx
sar eax, 1
jmp 0x41035d
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
lea edi, [edi + eax*2]
add edi, 2
lea ecx, [ebp - 0x28]
cmp esi, 7
lea eax, [ebp - 0x28]
cmova eax, edx
cmova ecx, edx
mov esi, ecx
sub edi, ecx
sub esi, eax
sar edi, 1
mov eax, dword [ebp - 0x54]
sar esi, 1
sub eax, esi
cmp eax, edi
cmovb edi, eax
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, edx
lea edx, [eax + esi*2]
mov eax, dword [ebp - 0x54]
sub eax, edi
lea ecx, [edx + edi*2]
mov dword [ebp - 0x54], eax
sub eax, esi
lea eax, [eax*2 + 2]
push eax
push ecx
push edx
call fcn.005323e0
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x50], vtable.MyCallback.0
mov dword [ebp - 0x4c], 0x5de3a0
mov dword [ebp - 0x48], 0x5de248
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x2c], 0
push 1
mov byte [ebp - 4], 2
call fcn.00522199
add esp, 0x10
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
push eax
cmova edx, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x74]
call fcn.004fc890
add esp, 8
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x44]
push eax
call fcn.00416720
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x41045d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410453
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410511
push ecx
push edx
call fcn.00524a57
add esp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
test ecx, ecx
je 0x410489
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x410489
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea eax, [ebp - 0x50]
push eax
push 0
push dword [ebp - 0x5c]
push str.ftp:__85.222.189.119_tinyrcon_CTF_custom_maps_auto_downloader.exe
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp - 0x30]
shr eax, 0x1f
xor al, 1
mov dword [ebp - 0x5c], eax
cmp ecx, 0xf
jbe 0x4104d7
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4104cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410516
push ecx
push edx
call fcn.00524a57
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00417590
mov al, byte [ebp - 0x5c]
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.0052450f
mov esp, ebp
pop ebp
ret 8
call fcn.0053ce3a
call fcn.0053ce3a
int3