Function at 0x417c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce351
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4fe080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.Document_completed
call fcn.00412620
mov ecx, eax
call fcn.00411210
mov ecx, dword [edi + 0x54]
call fcn.00439870
cmp dword [edi + 0xc], 0xffffffff
lea esi, [edi + 0xc]
je 0x417cb3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x14], 0x103
jne 0x417c9d
mov eax, dword [edi + 0x10]
push 0xffffffffffffffff
mov byte [eax + 4], 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov dword [esi], 0xffffffff
mov eax, dword [edi + 0x10]
mov byte [eax + 4], 0
mov ecx, dword [edi + 0x54]
add ecx, 0x10
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [edi + 0x10]
push esi
push 0
mov dword [ecx], eax
push dword [edi + 0x10]
push 0x43cc10
push 0x3e8
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
mov esi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
test al, al
je 0x417d96
lea eax, [edi + 0x24]
push eax
call esi
movzx eax, word [edi + 0x30]
push eax
movzx eax, word [edi + 0x2e]
push eax
movzx eax, word [edi + 0x2c]
push eax
push 0x4d52f8
push 0x14
push dword [edi + 0x34]
call fcn.0047b025
add esp, 0x18
push str._Document_completed
push dword [edi + 0x34]
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
lea eax, [edi + 0x24]
push eax
call esi
movzx eax, word [edi + 0x30]
push eax
movzx eax, word [edi + 0x2e]
push eax
movzx eax, word [edi + 0x2c]
push eax
push 0x4d52f8
push 0x14
push dword [edi + 0x34]
call fcn.0047b025
add esp, 0x18
push str._Adding_Javscript_function
push dword [edi + 0x34]
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
mov eax, dword [edi + 0x54]
xor ecx, ecx
mov edx, 2
mov eax, dword [eax + 0x24]
inc eax
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004780a0
mov ecx, dword [edi + 0x54]
add esp, 4
add ecx, 0x14
mov esi, eax
cmp dword [ecx + 0x14], 8
jb 0x417dc9
mov ecx, dword [ecx]
push dword [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [edi + 0x54]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00425d90
mov ecx, eax
call fcn.00425e10
test al, al
je 0x417e3c
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [edi + 0x30]
push eax
movzx eax, word [edi + 0x2e]
push eax
movzx eax, word [edi + 0x2c]
push eax
push 0x4d52f8
push 0x14
push dword [edi + 0x34]
call fcn.0047b025
add esp, 0x18
push str._Adding_Javscript_DIV_TAG
push dword [edi + 0x34]
push 0x509f20
call fcn.00402055
add esp, 8
push eax
call fcn.00402055
push eax
call fcn.004172e0
add esp, 0xc
push esi
call fcn.0047b041
mov eax, dword [0x5047fc]
add esp, 4
test eax, eax
je 0x417e6f
push eax
call fcn.004338b0
mov ecx, eax
call fcn.0042f620
mov ecx, dword [edi + 0x54]
mov esi, eax
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push esi
call fcn.0047b041
add esp, 4
mov eax, dword [edi + 0x48]
test eax, eax
je 0x417e83
push eax
call fcn.00421ee0
mov dword [edi + 0x48], 0
call fcn.004062b0
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00439660
mov ecx, dword [eax]
cmp dword [edi + 0x58], ecx
je 0x417eb2
mov dword [eax], 0
mov eax, dword [edi + 0x58]
mov dword [edi + 0x58], ecx
test eax, eax
je 0x417eb2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417ebf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi + 0x58], 0
je 0x417f16
push 0x18
call fcn.0047a506
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x417f0a
push ecx
xorps xmm0, xmm0
mov eax, esp
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov ecx, dword [edi + 0x58]
mov dword [eax], ecx
test ecx, ecx
je 0x417efd
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [edi + 4]
mov ecx, esi
push eax
call fcn.00421c80
jmp 0x417f0c
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x417f2a
push eax
call fcn.00421ee0
mov dword [edi + 0x4c], 0
call fcn.00407960
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00439660
mov ecx, dword [eax]
cmp dword [edi + 0x5c], ecx
je 0x417f59
mov dword [eax], 0
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x5c], ecx
test eax, eax
je 0x417f59
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x417f66
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi + 0x5c], 0
je 0x417fbd
push 0x18
call fcn.0047a506
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x417fb1
push ecx
xorps xmm0, xmm0
mov eax, esp
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov ecx, dword [edi + 0x5c]
mov dword [eax], ecx
test ecx, ecx
je 0x417fa4
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [edi + 4]
mov ecx, esi
push eax
call fcn.00421c80
jmp 0x417fb3
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x50]
test eax, eax
je 0x417fd1
push eax
call fcn.00421ee0
mov dword [edi + 0x50], 0
call fcn.004079a0
mov ecx, dword [edi + 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00439660
mov ecx, dword [eax]
cmp dword [edi + 0x60], ecx
je 0x418000
mov dword [eax], 0
mov eax, dword [edi + 0x60]
mov dword [edi + 0x60], ecx
test eax, eax
je 0x418000
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41800d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [edi + 0x60], 0
je 0x41805d
push 0x18
call fcn.0047a506
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x418058
push ecx
xorps xmm0, xmm0
mov eax, esp
movdqu xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov ecx, dword [edi + 0x60]
mov dword [eax], ecx
test ecx, ecx
je 0x41804b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea eax, [edi + 4]
mov ecx, esi
push eax
call fcn.00421c80
jmp 0x41805a
xor eax, eax
mov dword [edi + 0x50], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b06c
mov esp, ebp
pop ebp
ret