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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100922c2
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.100264e0
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 0x10047f13
mov eax, dword [esi]
mov ecx, edi
sub ecx, dword [eax + 0x70c]
cmp ecx, 0x2932e00
jbe 0x10047f08
push str.delete_url_cache__file_name_is__s__url_is__s
lea ecx, [ebp - 0x154]
call fcn.10011bb0
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.1002a7d0
mov dword [ebp - 0x5c], 0x1002d7b0
call fcn.1000c060
mov ecx, dword [esi]
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x6c], fcn.1002a7d0
mov dword [ebp - 0x68], 0x1002d7b0
call fcn.1000c060
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10010910
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x154]
call fcn.10016790
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.1004f361
mov eax, dword [0x100c6de0]
lea ecx, [esi + 4]
sub eax, ecx
push eax
push ecx
push esi
call fcn.100652b0
mov edx, dword [0x100c6de0]
add esp, 0x14
mov eax, dword [ebp - 0x30]
sub edx, 4
mov dword [0x100c6de0], edx
cmp eax, 0x10
jb 0x10047f0b
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x1000
jb 0x10047ef7
test cl, 0x1f
jne 0x10048013
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10048013
sub ecx, eax
cmp ecx, 4
jb 0x10048013
cmp ecx, 0x23
ja 0x10048013
mov ecx, eax
push ecx
call fcn.1004ebb6
mov edx, dword [0x100c6de0]
add esp, 4
jmp 0x10047f0b
add esi, 4
cmp esi, edx
jne 0x10047df6
cmp byte [ebp - 0x4c], 0
mov byte [ebp - 4], 4
je 0x10047f74
mov ecx, dword [ebp - 0x50]
mov eax, SysReAllocStringLen
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x10047f74
cmp eax, 0x80000000
jle 0x10047f74
lock bts dword [ecx], 0x1e
jb 0x10047f74
mov esi, dword [ecx + 4]
lea edi, [ecx + 4]
test esi, esi
jne 0x10047f6d
push esi
push esi
call fcn.100230c0
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x10047f6b
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10047f6d
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x710
mov byte [ebp - 4], 1
call fcn.1004ecd6
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
test edi, edi
je 0x100483a7
push 0x710
push 0
push edi
call fcn.10064410
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x11]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.10002a00
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x10047fbf
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047fc4
sub ecx, esi
cmp ecx, 0x3ff
jbe 0x10047fdc
mov ecx, 0x3ff
jmp 0x10047fea
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10047fe1
sub ecx, esi
push ecx
push edx
push edi
call fcn.10071d80
mov eax, dword [ebp - 0x8c]
add esp, 0xc
cmp eax, 0x10
jb 0x10048045
mov ecx, dword [ebp - 0xa0]
inc eax
cmp eax, 0x1000
jb 0x1004803c
test cl, 0x1f
je 0x10048018
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10048024
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x10048030
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x1004803a
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
add esp, 4
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x11]
call fcn.10002a00
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x10048062
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 0x10048070
sub ecx, esi
cmp ecx, 0x103
jbe 0x10048088
mov ecx, 0x103
jmp 0x10048099
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048090
sub ecx, esi
push ecx
push edx
push ebx
call fcn.10071d80
mov eax, dword [ebp - 0xa4]
add esp, 0xc
cmp eax, 0x10
jb 0x100480f4
mov ecx, dword [ebp - 0xb8]
inc eax
cmp eax, 0x1000
jb 0x100480eb
test cl, 0x1f
je 0x100480c7
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100480d3
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x100480df
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x100480e9
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
add esp, 4
push 0x2e
push ebx
call fcn.10066720
mov ecx, ebx
mov esi, eax
add esp, 8
lea edx, [ecx + 1]
test esi, esi
je 0x10048184
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048110
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 0x10048121
sub edx, dword [ebp - 0x4c]
lea eax, [edi + 0x504]
sub ecx, edx
push ecx
push ebx
push eax
call fcn.10071d80
add esp, 0xc
inc esi
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048144
sub ecx, edx
cmp ecx, 0x103
jbe 0x10048165
mov ecx, 0x103
lea eax, [edi + 0x608]
push ecx
push esi
push eax
jmp 0x100481bc
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048170
sub ecx, edx
lea eax, [edi + 0x608]
push ecx
push esi
push eax
jmp 0x100481bc
lea esi, [edi + 0x504]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048190
sub ecx, edx
cmp ecx, 0x103
jbe 0x100481a8
mov ecx, 0x103
jmp 0x100481b9
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100481b0
sub ecx, edx
push ecx
push ebx
push esi
call fcn.10071d80
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.100264e0
mov ecx, dword [0x100c6de0]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
cmp eax, ecx
jae 0x10048238
mov edx, eax
mov eax, dword [0x100c6ddc]
cmp eax, edx
ja 0x10048238
mov esi, edx
sub esi, eax
sar esi, 2
cmp ecx, dword [0x100c6de4]
jne 0x1004822d
push 1
mov ecx, 0x100c6ddc
call fcn.10020ae0
mov ecx, dword [0x100c6de0]
mov eax, dword [0x100c6ddc]
test ecx, ecx
je 0x1004825e
mov eax, dword [eax + esi*4]
mov dword [ecx], eax
jmp 0x10048258
cmp ecx, dword [0x100c6de4]
jne 0x10048252
push 1
mov ecx, 0x100c6ddc
call fcn.10020ae0
mov ecx, dword [0x100c6de0]
test ecx, ecx
je 0x1004825e
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.10011bb0
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
push ecx
push eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], fcn.1002a7d0
mov dword [ebp - 0x74], 0x1002d7b0
call fcn.1000c060
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], ebx
push ecx
push eax
mov dword [ebp - 0x84], fcn.1002a7d0
mov dword [ebp - 0x80], 0x1002d7b0
call fcn.1000c060
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10010910
add esp, 0x18
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1f0]
call fcn.10016790
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 0x10048332
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x10048329
test cl, 0x1f
je 0x10048305
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10048311
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x1004831d
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x10048327
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
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 0x100483a7
mov eax, dword [ebp - 0x58]
mov ecx, SysReAllocStringLen
lock xadd dword [eax], ecx
test ecx, 0x40000000
jne 0x100483a7
cmp ecx, 0x80000000
jle 0x100483a7
lock bts dword [eax], 0x1e
jb 0x100483a7
mov esi, dword [eax + 4]
lea edi, [eax + 4]
test esi, esi
jne 0x100483a0
push esi
push esi
call fcn.100230c0
mov edx, eax
add esp, 8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov esi, eax
test esi, esi
je 0x1004839e
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100483a0
mov esi, edx
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x100483f1
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x100483e8
test cl, 0x1f
je 0x100483c4
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100483d0
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x100483dc
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x100483e6
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
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 0x1004844d
mov ecx, dword [ebp + 0x20]
inc eax
cmp eax, 0x1000
jb 0x10048444
test cl, 0x1f
je 0x10048420
call fcn.1006fbb9
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1004842c
call fcn.1006fbb9
sub ecx, eax
cmp ecx, 4
jae 0x10048438
call fcn.1006fbb9
cmp ecx, 0x23
jbe 0x10048442
call fcn.1006fbb9
mov ecx, eax
push ecx
call fcn.1004ebb6
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.1004ebbb
mov esp, ebp
pop ebp
ret