Function at 0x10047ca0
Capabilities:
Check for time delay via gettickcount
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092242
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x100bb0a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 1
movq qword [ebp - 0x50], xmm0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x100c6dd4
mov byte [ebp - 0x4c], 0
call fcn.10026090
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x100c6ddc]
mov edi, eax
mov edx, dword [0x100c6de0]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, edx
je 0x10047e33
mov eax, dword [esi]
mov ecx, edi
sub ecx, dword [eax + 0x70c]
cmp ecx, 0x2932e00
jbe 0x10047e28
push str.delete_url_cache__file_name_is__s__url_is__s
lea ecx, [ebp - 0x154]
call fcn.100118d0
mov ecx, dword [esi]
add ecx, 0x400
mov byte [ebp - 4], 3
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
mov dword [ebp - 0x60], fcn.10020d00
mov dword [ebp - 0x5c], 0x1002d600
call fcn.1000bd80
mov ecx, dword [esi]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x6c], fcn.10020d00
mov dword [ebp - 0x68], 0x1002d600
call fcn.1000bd80
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10010630
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.10016540
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call ebx
push 0x710
push dword [esi]
call fcn.1004f321
mov eax, dword [0x100c6de0]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.10065250
mov edx, dword [0x100c6de0]
add esp, 0x14
mov eax, dword [ebp - 0x30]
sub edx, 4
mov dword [0x100c6de0], edx
cmp eax, 0x10
jb 0x10047e2b
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x10047e17
test cl, 0x1f
jne 0x10047f33
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10047f33
sub ecx, eax
cmp ecx, 4
jb 0x10047f33
cmp ecx, 0x23
ja 0x10047f33
mov ecx, eax
push ecx
call fcn.1004eb86
mov edx, dword [0x100c6de0]
add esp, 4
jmp 0x10047e2b
add esi, 4
cmp esi, edx
jne 0x10047d16
cmp byte [ebp - 0x4c], 0
mov byte [ebp - 4], 4
je 0x10047e94
mov ecx, dword [ebp - 0x50]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x10047e94
cmp eax, 0x80000000
jle 0x10047e94
lock bts dword [ecx], 0x1e
jb 0x10047e94
mov esi, dword [ecx + 4]
lea edi, [ecx + 4]
test esi, esi
jne 0x10047e8d
push esi
push esi
call fcn.10022d20
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x10047e8b
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047e8d
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x710
mov byte [ebp - 4], 1
call fcn.1004eca6
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
test edi, edi
je 0x100482c7
push 0x710
push 0
push edi
call fcn.100643b0
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x11]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10002a60
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x10047edf
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047ee4
sub ecx, esi
cmp ecx, 0x3ff
jbe 0x10047efc
mov ecx, 0x3ff
jmp 0x10047f0a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047f01
sub ecx, esi
push ecx
push edx
push edi
call fcn.10071de0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, 0x10
jb 0x10047f65
mov ecx, dword [ebp - 0xa0]
inc eax
cmp eax, 0x1000
jb 0x10047f5c
test cl, 0x1f
je 0x10047f38
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10047f44
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x10047f50
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10047f5a
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002a60
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x10047f82
mov edx, dword [edx]
mov ecx, edx
lea ebx, [edi + 0x400]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047f90
sub ecx, esi
cmp ecx, 0x103
jbe 0x10047fa8
mov ecx, 0x103
jmp 0x10047fb9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047fb0
sub ecx, esi
push ecx
push edx
push ebx
call fcn.10071de0
mov eax, dword [ebp - 0xa4]
add esp, 0xc
cmp eax, 0x10
jb 0x10048014
mov ecx, dword [ebp - 0xb8]
inc eax
cmp eax, 0x1000
jb 0x1004800b
test cl, 0x1f
je 0x10047fe7
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10047ff3
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x10047fff
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10048009
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
push 0x2e
push ebx
call fcn.100666c0
mov ecx, ebx
mov esi, eax
add esp, 8
lea edx, [ecx + 1]
test esi, esi
je 0x100480a4
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048030
sub ecx, edx
mov edx, esi
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10048041
sub edx, dword [ebp - 0x4c]
lea eax, [edi + 0x504]
sub ecx, edx
push ecx
push ebx
push eax
call fcn.10071de0
add esp, 0xc
inc esi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048064
sub ecx, edx
cmp ecx, 0x103
jbe 0x10048085
mov ecx, 0x103
lea eax, [edi + 0x608]
push ecx
push esi
push eax
jmp 0x100480dc
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048090
sub ecx, edx
lea eax, [edi + 0x608]
push ecx
push esi
push eax
jmp 0x100480dc
lea esi, [edi + 0x504]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100480b0
sub ecx, edx
cmp ecx, 0x103
jbe 0x100480c8
mov ecx, 0x103
jmp 0x100480d9
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100480d0
sub ecx, edx
push ecx
push ebx
push esi
call fcn.10071de0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm0, xmm0
mov dword [edi + 0x70c], eax
movq qword [ebp - 0x58], xmm0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x100c6dd4
mov byte [ebp - 0x54], 0
call fcn.10026090
mov ecx, dword [0x100c6de0]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
cmp eax, ecx
jae 0x10048158
mov edx, eax
mov eax, dword [0x100c6ddc]
cmp eax, edx
ja 0x10048158
mov esi, edx
sub esi, eax
sar esi, 2
cmp ecx, dword [0x100c6de4]
jne 0x1004814d
push 1
mov ecx, 0x100c6ddc
call fcn.10020790
mov ecx, dword [0x100c6de0]
mov eax, dword [0x100c6ddc]
test ecx, ecx
je 0x1004817e
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
jmp 0x10048178
cmp ecx, dword [0x100c6de4]
jne 0x10048172
push 1
mov ecx, 0x100c6ddc
call fcn.10020790
mov ecx, dword [0x100c6de0]
test ecx, ecx
je 0x1004817e
mov dword [ecx], edi
mov ecx, dword [0x100c6de0]
add ecx, 4
mov dword [0x100c6de0], ecx
lea ecx, [ebp - 0x1f0]
push str.should_insert_load_url:_url_is__s__filename_is__s
call fcn.100118d0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
push ecx
push eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], fcn.10020d00
mov dword [ebp - 0x74], 0x1002d600
call fcn.1000bd80
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], ebx
push ecx
push eax
mov dword [ebp - 0x84], fcn.10020d00
mov dword [ebp - 0x80], 0x1002d600
call fcn.1000bd80
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10010630
add esp, 0x18
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1f0]
call fcn.10016540
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10048252
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x10048249
test cl, 0x1f
je 0x10048225
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10048231
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x1004823d
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10048247
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [ebp - 0x54], 0
mov byte [ebp - 4], 7
je 0x100482c7
mov eax, dword [ebp - 0x58]
mov ecx, SysReAllocStringLen
lock xadd dword [eax], ecx
test ecx, 0x40000000
jne 0x100482c7
cmp ecx, 0x80000000
jle 0x100482c7
lock bts dword [eax], 0x1e
jb 0x100482c7
mov esi, dword [eax + 4]
lea edi, [eax + 4]
test esi, esi
jne 0x100482c0
push esi
push esi
call fcn.10022d20
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x100482be
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100482c0
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x10048311
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x10048308
test cl, 0x1f
je 0x100482e4
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100482f0
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x100482fc
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10048306
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x1004836d
mov ecx, dword [ebp + 0x20]
inc eax
cmp eax, 0x1000
jb 0x10048364
test cl, 0x1f
je 0x10048340
call fcn.1006fbaa
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1004834c
call fcn.1006fbaa
sub ecx, eax
cmp ecx, 4
jae 0x10048358
call fcn.1006fbaa
cmp ecx, 0x23
jbe 0x10048362
call fcn.1006fbaa
mov ecx, eax
push ecx
call fcn.1004eb86
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004eb8b
mov esp, ebp
pop ebp
ret