Function at 0x406a60
Capabilities:
Resolve function by parsing pe exports
Schedule task via itaskscheduler

Disassembly:
sub esp, 0x574
mov eax, dword [0x43e0a0]
xor eax, esp
mov dword [esp + 0x56c], eax
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], ebx
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [0x43f184]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, ebx
jge 0x406b56
push str._AddScheduleJob
push 0x9a
push esi
push str.KGLOG_COM_PROCESS_ERROR_0x_X__at_line__d_in__s_n
push 7
call fcn.004077c0
add esp, 0x14
push esi
push str.Failed_to_add_schedule_job__Error_code:__d
push 7
call fcn.004077c0
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x406af3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x406b07
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x406b1b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x406b2f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
cmp ebp, ebx
je 0x406b39
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x57c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416863
add esp, 0x574
ret
lea eax, [esp + 0x1c]
push eax
push 0x4307a4
mov ebp, 1
push ebp
push ebx
push 0x430784
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x406b87
push str._AddScheduleJob
push 0xa1
jmp 0x406abf
push edi
push str.GameUpdater__s
lea ecx, [esp + 0x70]
push 0x80
push ecx
call fcn.00416bb5
add esp, 0x10
cmp eax, ebx
jg 0x406bbc
push str._AddScheduleJob
push 0xa4
push str.nRetCode___0
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
cmp eax, 0x80
jb 0x406bdc
push str._AddScheduleJob
push 0xa5
push str.nRetCode____countof_szTaskName_
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0x4307b4
push 0x430794
lea ecx, [esp + 0x74]
push ecx
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x406c11
push str._AddScheduleJob
push 0xaa
jmp 0x406abf
push 0x104
lea eax, [esp + 0x16c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, ebx
jg 0x406c42
push str._AddScheduleJob
push 0xad
push str.nRetCode___0
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
cmp eax, 0x104
jb 0x406c62
push str._AddScheduleJob
push 0xae
push str.nRetCode____countof_szApplicationPath_
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
lea ecx, [esp + 0x168]
push 0x5c
push ecx
call fcn.00416b85
add esp, 8
cmp eax, ebx
jne 0x406c91
push str._AddScheduleJob
push 0xb1
push str.pchLastSlash
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
push str.gameupdater.exe
lea edx, [esp + 0x16c]
push edx
push 0x435c44
mov word [eax + 2], bx
lea eax, [esp + 0x37c]
push 0x104
push eax
call fcn.00416bb5
add esp, 0x14
cmp eax, ebx
jg 0x406cd9
push str._AddScheduleJob
push 0xb8
push str.nRetCode___0
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
cmp eax, 0x104
jb 0x406cf9
push str._AddScheduleJob
push 0xb9
push str.nRetCode____countof_szGameUpdaterFileName_
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x370]
push edx
push eax
mov eax, dword [ecx + 0x80]
call eax
mov esi, eax
cmp esi, ebx
jge 0x406d25
push str._AddScheduleJob
push 0xbc
jmp 0x406abf
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0x437684
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x406d4e
push str._AddScheduleJob
push 0xbf
jmp 0x406abf
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x78]
push ebx
push 0x4374c0
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x406d75
push str._AddScheduleJob
push 0xc2
jmp 0x406abf
push ebx
call fcn.00417763
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], edx
call fcn.00417a64
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x406daf
push str._AddScheduleJob
push 0xc6
push str.ptmTime
push str.KGLOG_PROCESS_ERROR__s__at_line__d_in__s_n
jmp 0x406ac5
push 0x30
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.004193c0
mov word [esp + 0x44], 0x30
mov dx, word [edi + 0x14]
add dx, 0x76c
mov word [esp + 0x48], dx
movzx eax, word [edi + 0x10]
add ax, bp
mov word [esp + 0x4a], ax
mov cx, word [edi + 0xc]
mov word [esp + 0x4c], cx
mov edx, dword [edi + 8]
add esp, 0xc
and edx, 0x80000001
jns 0x406df9
dec edx
or edx, 0xfffffffe
inc edx
mov word [esp + 0x48], dx
movzx eax, word [edi + 4]
lea edx, [esp + 0x18]
push edx
mov word [esp + 0x4e], ax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
mov dword [esp + 0x50], 0x5a0
mov dword [esp + 0x54], 0x78
mov dword [esp + 0x5c], ebp
mov word [esp + 0x60], bp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jge 0x406e4b
push str._AddScheduleJob
push 0xd7
jmp 0x406abf
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
cmp esi, ebx
jge 0x406e71
push str._AddScheduleJob
push 0xda
jmp 0x406abf
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push 0x434514
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
cmp esi, ebx
jge 0x406e9b
push str._AddScheduleJob
push 0xdd
jmp 0x406abf
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push ebp
push ebx
push eax
call edx
mov esi, eax
cmp esi, ebx
jge 0x406ebe
push str._AddScheduleJob
push 0xe0
jmp 0x406abf
mov dword [esp + 0x24], ebp
jmp 0x406adf