Function at 0x100a876b
Capabilities:
Accept command line arguments
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x100dd3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.1005a94d
movzx eax, al
test eax, eax
je 0x100a87a4
push dword [ebp + 8]
push str.TxDl_Main_enter__cmdline_s
push 0xd2
push 0x100c6198
call fcn.1005a7dc
add esp, 0x10
push 0x100c6194
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.10003a8c
push 0x100c61ec
lea eax, [ebp - 0xc]
push eax
call fcn.1001063d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x100a87e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xc]
call fcn.10003b21
push 0x100c61f0
lea ecx, [ebp - 0x2c8]
call fcn.100016cf
push eax
push 0x100c61f4
lea ecx, [ebp - 0x2e4]
call fcn.100016cf
push eax
push 0x100c61f8
lea ecx, [ebp - 0x300]
call fcn.100016cf
push eax
lea ecx, [ebp - 0xc]
call fcn.100333d3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x304], esp
push eax
call fcn.100016cf
lea ecx, [ebp - 0x78]
call fcn.100b07d8
lea ecx, [ebp - 0x300]
call fcn.1000173d
lea ecx, [ebp - 0x2e4]
call fcn.1000173d
lea ecx, [ebp - 0x2c8]
call fcn.1000173d
and dword [ebp - 0x80], 0
and dword [ebp - 0x308], 0
push 0x100c6200
lea ecx, [ebp - 0x324]
call fcn.100016cf
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x78]
call fcn.100166eb
lea ecx, [ebp - 0x324]
call fcn.1000173d
push dword [ebp - 0x80]
mov ecx, 0x100f9260
call fcn.100a82ca
test eax, eax
je 0x100a88c8
or dword [ebp - 0x328], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x328]
jmp 0x100a8c56
xor eax, eax
cmp dword [0x100f9178], 0
setne al
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
cmp dword [0x100f917c], 0
je 0x100a891b
push dword [0x100f917c]
call fcn.100a7927
pop ecx
test eax, eax
jne 0x100a891b
or dword [ebp - 0x32c], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x32c]
jmp 0x100a8c56
cmp dword [ebp - 0x7c], 0
je 0x100a8b05
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x2ac], 0x1b7740
and dword [ebp - 0x298], 0
lea ecx, [ebp - 0x2a4]
call fcn.1001db5c
push 0x2001f
push 0x100c6214
push SysReAllocString
lea ecx, [ebp - 0x2a4]
call fcn.10009924
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 0
jne 0x100a89a7
lea eax, [ebp - 0x2ac]
push eax
push str.kSeWT
lea ecx, [ebp - 0x2a4]
call fcn.10020635
lea eax, [ebp - 0x298]
push eax
push str.kSeDbg
lea ecx, [ebp - 0x2a4]
call fcn.10020635
cmp dword [ebp - 0x298], 0
je 0x100a89be
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x29c]
cmp eax, dword [ebp - 0x2ac]
jae 0x100a8a1b
mov eax, dword [ebp - 0x2ac]
sub eax, dword [ebp - 0x29c]
push eax
mov ecx, 0x100f925c
call fcn.100333d3
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100a8a1b
or dword [ebp - 0x330], 0xffffffff
lea ecx, [ebp - 0x2a4]
call fcn.10009996
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x330]
jmp 0x100a8c56
lea ecx, [ebp - 0x294]
call fcn.1001db5c
push 0x2001f
push 0x100c6264
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x294]
call fcn.10009924
mov dword [ebp - 0x2a8], eax
and word [ebp - 0x290], 0
push 0x208
push 0
lea eax, [ebp - 0x28e]
push eax
call fcn.10070ca0
add esp, 0xc
mov dword [ebp - 0x2a0], 0x104
cmp dword [ebp - 0x2a8], 0
jne 0x100a8a95
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x290]
push eax
push str.ExeString
lea ecx, [ebp - 0x294]
call fcn.10009ad5
lea eax, [ebp - 0x290]
push eax
call fcn.1006dfeb
pop ecx
test eax, eax
jbe 0x100a8aef
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100a8aef
or dword [ebp - 0x334], 0xffffffff
lea ecx, [ebp - 0x294]
call fcn.10009996
lea ecx, [ebp - 0x2a4]
call fcn.10009996
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x334]
jmp 0x100a8c56
lea ecx, [ebp - 0x294]
call fcn.10009996
lea ecx, [ebp - 0x2a4]
call fcn.10009996
push dword [0x100f9204]
mov ecx, 0x100f9260
call fcn.100a8645
lea ecx, [ebp - 8]
call fcn.10042c86
lea ecx, [ebp - 8]
call fcn.10012e62
push eax
call sym.QQPCDownload.dll_CreateTxdlController
test eax, eax
jge 0x100a8b63
mov ecx, 0x100f9260
call fcn.100a8540
or dword [ebp - 0x338], 0xffffffff
lea ecx, [ebp - 8]
call fcn.100102f1
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x338]
jmp 0x100a8c56
lea ecx, [ebp - 8]
call fcn.100333d3
mov dword [ebp - 0x344], eax
push 0
lea ecx, [ebp - 0xc]
call fcn.100333d3
push eax
lea ecx, [ebp - 0x33c]
call fcn.10020837
mov ecx, eax
call fcn.100333d3
push eax
push dword [ebp - 0x344]
mov eax, dword [ebp - 0x344]
mov eax, dword [eax]
call dword [eax + 0xc]
lea ecx, [ebp - 0x33c]
call fcn.1000a706
lea ecx, [ebp - 8]
call fcn.100333d3
push eax
mov ecx, 0x100f92d8
call fcn.100a6913
lea ecx, [ebp - 8]
call fcn.100333d3
push eax
mov ecx, 0x100f9260
call fcn.100a8698
mov ecx, 0x100f92d8
call fcn.100a7742
mov ecx, 0x100f92d8
call fcn.100a68b8
lea ecx, [ebp - 8]
call fcn.100333d3
mov dword [ebp - 0x348], eax
mov eax, dword [ebp - 0x348]
mov eax, dword [eax]
push dword [ebp - 0x348]
call dword [eax + 0x10]
mov ecx, 0x100f9260
call fcn.100a8540
call fcn.1005a94d
movzx eax, al
test eax, eax
je 0x100a8c31
push str.TxDl_Main_leave...
push 0xd2
push str.D:jenkins_TrunkworkspaceCEN_Hive_QQPCDownload_ForDComqqpcmgr_projTxdlTxdl.cpp
call fcn.1005a7dc
add esp, 0xc
and dword [ebp - 0x340], 0
lea ecx, [ebp - 8]
call fcn.100102f1
lea ecx, [ebp - 0x78]
call fcn.100b08be
lea ecx, [ebp - 0xc]
call fcn.10003af7
mov eax, dword [ebp - 0x340]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006e001
leave
ret 4