Function at 0x402111
Capabilities:
Create process on windows
Get common file path
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0x688
mov eax, 0x44ab99
call fcn.00433612
mov eax, dword [ebp + 8]
mov dword [ebp - 0x658], eax
push str.LiveUDParam
lea eax, [ebp - 0x458]
push eax
mov esi, ecx
call fcn.00402ca2
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
lea edi, [ebp - 0x17]
mov byte [ebp - 0x18], bl
stosd dword es:[edi], eax
mov eax, dword [esi + 0x130]
cmp eax, ebx
jne 0x402182
lea eax, [ebp - 0x25c]
push eax
call fcn.0042503b
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x11c]
mov byte [ebp - 4], 1
call fcn.00403181
push ebx
push 1
lea ecx, [ebp - 0x25c]
call fcn.00404e7c
push ebx
lea ecx, [ebp - 0x33c]
mov dword [ebp - 0x324], 0xf
call fcn.00404ee9
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x130]
lea eax, [esi + 0x11c]
cmp dword [eax + 0x18], 8
jb 0x4021b3
mov eax, dword [eax + 4]
jmp 0x4021b6
add eax, 4
lea edx, [ebp - 0x33c]
push edx
push ecx
push eax
call fcn.00423110
add esp, 0xc
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1b0]
call fcn.004324a0
add esp, 0xc
push eax
push str.serverver
lea edi, [ebp - 0x458]
call fcn.00402f01
push 0xa
lea eax, [ebp - 0x18]
push eax
xor eax, eax
cmp byte [esi + 0x70], bl
setne al
push eax
call fcn.004324a0
add esp, 0xc
push eax
push str.checkupdate
call fcn.00402f01
cmp dword [ebp - 0x324], 0x10
mov eax, dword [ebp - 0x338]
jae 0x402223
lea eax, [ebp - 0x338]
push eax
push str.productpath
lea edi, [ebp - 0x458]
call fcn.00402f01
push 0xa
lea eax, [ebp - 0x18]
push eax
xor eax, eax
cmp byte [esi + 0x1d8], bl
setne al
push eax
call fcn.004324a0
add esp, 0xc
push eax
push str.isinservice
call fcn.00402f01
mov eax, dword [ebp - 0x658]
mov ecx, 0x4589e4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40228a
cmp dx, bx
je 0x402286
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40228a
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x402264
xor eax, eax
jmp 0x40228f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4023f2
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x244], edi
call fcn.00404ee9
push ebx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d0], edi
call fcn.00404ee9
push ebx
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x35c], edi
call fcn.00404ee9
mov byte [ebp - 4], 5
cmp dword [esi + 0x8c], 8
mov eax, dword [esi + 0x88]
jb 0x4022e8
mov ecx, dword [esi + 0x78]
jmp 0x4022eb
lea ecx, [esi + 0x78]
lea edx, [ebp - 0x25c]
push edx
push eax
push ecx
call fcn.00423110
mov ecx, dword [esi + 0xa4]
lea eax, [esi + 0x90]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x402313
mov eax, dword [eax + 4]
jmp 0x402316
add eax, 4
lea edx, [ebp - 0x2e8]
push edx
push ecx
push eax
call fcn.00423110
mov ecx, dword [esi + 0xc0]
lea eax, [esi + 0xac]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40233e
mov eax, dword [eax + 4]
jmp 0x402341
add eax, 4
lea edx, [ebp - 0x374]
push edx
push ecx
push eax
call fcn.00423110
mov eax, dword [ebp - 0x258]
add esp, 0xc
cmp dword [ebp - 0x244], 0x10
jae 0x402367
lea eax, [ebp - 0x258]
push eax
push str.xarpath
lea edi, [ebp - 0x458]
call fcn.00402f01
cmp dword [ebp - 0x2d0], 0x10
mov eax, dword [ebp - 0x2e4]
jae 0x40238d
lea eax, [ebp - 0x2e4]
push eax
push str.xarname
lea edi, [ebp - 0x458]
call fcn.00402f01
cmp dword [ebp - 0x35c], 0x10
mov eax, dword [ebp - 0x370]
jae 0x4023b3
lea eax, [ebp - 0x370]
push eax
push str.param
lea edi, [ebp - 0x458]
call fcn.00402f01
push ebx
push 1
lea ecx, [ebp - 0x374]
call fcn.00404f05
push ebx
push 1
lea ecx, [ebp - 0x2e8]
call fcn.00404f05
push ebx
push 1
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 2
call fcn.00404f05
push str.Product
lea eax, [ebp - 0x650]
push eax
call fcn.00402ca2
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x2ec], edi
call fcn.00404ee9
push ebx
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x298], edi
call fcn.00404ee9
mov byte [ebp - 4], 8
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
jb 0x40243c
mov eax, dword [esi + 4]
jmp 0x40243f
lea eax, [esi + 4]
lea edx, [ebp - 0x304]
push edx
push ecx
push eax
call fcn.00423110
mov ecx, dword [esi + 0x30]
add esp, 0xc
cmp dword [esi + 0x34], 8
jb 0x40245e
mov eax, dword [esi + 0x20]
jmp 0x402461
lea eax, [esi + 0x20]
lea edx, [ebp - 0x2b0]
push edx
push ecx
push eax
call fcn.00423110
mov eax, dword [ebp - 0x300]
add esp, 0xc
cmp dword [ebp - 0x2ec], 0x10
jae 0x402487
lea eax, [ebp - 0x300]
push eax
push str.name
lea edi, [ebp - 0x650]
call fcn.00402f01
cmp dword [ebp - 0x298], 0x10
mov eax, dword [ebp - 0x2ac]
jae 0x4024ad
lea eax, [ebp - 0x2ac]
push eax
push 0x458a50
lea edi, [ebp - 0x650]
call fcn.00402f01
lea eax, [esi + 0x158]
cmp dword [eax + 0x18], 0x10
jb 0x4024cf
mov eax, dword [eax + 4]
jmp 0x4024d2
add eax, 4
push eax
push 0x458a54
lea edi, [ebp - 0x650]
call fcn.00402f01
lea eax, [esi + 0x174]
cmp dword [eax + 0x18], 0x10
jb 0x4024f4
mov eax, dword [eax + 4]
jmp 0x4024f7
add eax, 4
push eax
push str.keyname
lea edi, [ebp - 0x650]
call fcn.00402f01
mov eax, edi
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00402f74
push str.DlPath
lea eax, [ebp - 0x5a8]
push eax
call fcn.00402ca2
push 0xf
pop edi
push ebx
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2b4], edi
call fcn.00404ee9
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x50], 8
mov eax, dword [esi + 0x4c]
jb 0x40254f
mov ecx, dword [esi + 0x3c]
jmp 0x402552
lea ecx, [esi + 0x3c]
lea edx, [ebp - 0x2cc]
push edx
push eax
push ecx
call fcn.00423110
mov eax, dword [ebp - 0x2c8]
add esp, 0xc
cmp dword [ebp - 0x2b4], 0x10
jae 0x402578
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x654], eax
cmp byte [ebp - 0x598], bl
je 0x402591
lea eax, [ebp - 0x5a8]
call fcn.00403455
push dword [ebp - 0x654]
lea ecx, [ebp - 0x594]
mov byte [ebp - 0x598], bl
call fcn.00404e1f
lea eax, [ebp - 0x5a8]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00402f74
push str.LocalParam
lea eax, [ebp - 0x500]
push eax
call fcn.00402ca2
push ebx
lea ecx, [ebp - 0x320]
mov dword [ebp - 0x308], edi
call fcn.00404ee9
mov byte [ebp - 4], 0xc
mov ecx, dword [esi + 0x1d0]
lea eax, [esi + 0x1bc]
cmp dword [eax + 0x18], 8
jb 0x4025f9
mov eax, dword [eax + 4]
jmp 0x4025fc
add eax, 4
lea edx, [ebp - 0x320]
push edx
push ecx
push eax
call fcn.00423110
mov eax, dword [ebp - 0x31c]
add esp, 0xc
cmp dword [ebp - 0x308], 0x10
jae 0x402622
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x654], eax
cmp byte [ebp - 0x4f0], bl
je 0x40263b
lea eax, [ebp - 0x500]
call fcn.00403455
push dword [ebp - 0x654]
lea ecx, [ebp - 0x4ec]
mov byte [ebp - 0x4f0], bl
call fcn.00404e1f
lea eax, [ebp - 0x500]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.00402f74
push ebx
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x27c], edi
call fcn.00404ee9
lea ecx, [ebp - 0x458]
mov byte [ebp - 4], 0xd
call fcn.00401538
push eax
mov dword [ebp - 0x654], eax
call fcn.00433372
pop ecx
push dword [ebp - 0x654]
mov edi, eax
push ebx
push edi
call fcn.004310d0
add esp, 0xc
push edi
lea ecx, [ebp - 0x458]
call fcn.004015ba
push edi
lea ecx, [ebp - 0x294]
call fcn.00404e1f
push edi
call fcn.0043343c
pop ecx
push 7
pop edi
push ebx
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x340], edi
call fcn.00404e5e
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x27c], 0x10
mov eax, dword [ebp - 0x290]
jae 0x4026f2
lea eax, [ebp - 0x290]
lea ecx, [ebp - 0x358]
push ecx
push dword [ebp - 0x280]
push eax
call fcn.00423210
add esp, 0xc
push dword [ebp - 0x658]
lea ecx, [ebp - 0x278]
call fcn.00402b81
push 0x458a74
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xf
call fcn.00402bc9
cmp dword [ebp - 0x340], 8
mov eax, dword [ebp - 0x354]
jae 0x402742
lea eax, [ebp - 0x354]
push eax
lea ecx, [ebp - 0x278]
call fcn.00402bc9
push 0x458a7c
lea ecx, [ebp - 0x278]
call fcn.00402bc9
xor eax, eax
mov ecx, edi
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004329ed
add esp, 0xc
push eax
lea ecx, [ebp - 0x278]
call fcn.00402bc9
lea eax, [ebp - 0x3ac]
push eax
call fcn.00425188
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x3ac]
mov dword [esp], str.XLLiveUD.exe
push eax
lea eax, [ebp - 0x390]
push eax
call fcn.00404607
add esp, 0xc
xor eax, eax
mov byte [ebp - 4], 0x11
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
call fcn.004310d0
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [esi + 0x114], ebx
jbe 0x402857
push 0xffffffffffffffff
push ebx
add esi, 0x100
push esi
lea ecx, [ebp - 0x390]
call fcn.00403181
cmp dword [esi + 0x18], 8
jb 0x402817
mov esi, dword [esi + 4]
jmp 0x40281a
add esi, 4
lea eax, [ebp - 0x25c]
push esi
push eax
call fcn.00424fcc
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
pop ecx
pop ecx
jae 0x40283e
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x25c]
call fcn.00404e7c
jmp 0x40285a
xor esi, esi
inc esi
cmp dword [ebp - 0x394], 8
mov eax, dword [ebp - 0x3a8]
jae 0x40286f
lea eax, [ebp - 0x3a8]
cmp dword [ebp - 0x260], 8
mov dword [ebp - 0x654], eax
mov eax, dword [ebp - 0x274]
jae 0x40288a
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x378], 8
mov edi, dword [ebp - 0x38c]
mov dword [ebp - 0x658], eax
jae 0x4028a5
lea edi, [ebp - 0x38c]
push 0x3c
lea eax, [ebp - 0x694]
push ebx
push eax
call fcn.004310d0
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x680], eax
mov eax, dword [ebp - 0x654]
mov dword [ebp - 0x67c], eax
add esp, 0xc
lea eax, [ebp - 0x694]
push eax
mov dword [ebp - 0x694], 0x3c
mov dword [ebp - 0x68c], ebx
mov dword [ebp - 0x688], str.open
mov dword [ebp - 0x684], edi
mov dword [ebp - 0x678], 5
mov dword [ebp - 0x674], ebx
mov dword [ebp - 0x690], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402924
mov dword [ebp - 0x654], ebx
xor edi, edi
jmp 0x40292c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
push esi
lea ecx, [ebp - 0x390]
call fcn.00404e7c
push ebx
push esi
lea ecx, [ebp - 0x3ac]
call fcn.00404e7c
push ebx
push esi
lea ecx, [ebp - 0x278]
call fcn.00404e7c
push ebx
push esi
lea ecx, [ebp - 0x358]
call fcn.00404e7c
push ebx
push esi
lea ecx, [ebp - 0x294]
call fcn.00404f05
push ebx
push esi
lea ecx, [ebp - 0x320]
call fcn.00404f05
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 0xa
call fcn.00402d5c
push ebx
push esi
lea ecx, [ebp - 0x2cc]
call fcn.00404f05
lea ecx, [ebp - 0x5a8]
mov byte [ebp - 4], 8
call fcn.00402d5c
push ebx
push esi
lea ecx, [ebp - 0x2b0]
call fcn.00404f05
push ebx
push esi
lea ecx, [ebp - 0x304]
call fcn.00404f05
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 2
call fcn.00402d5c
push ebx
push esi
lea ecx, [ebp - 0x33c]
call fcn.00404f05
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00402d5c
mov eax, edi
call fcn.00433695
ret 4