Function at 0x410c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x438], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x24], eax
mov eax, dword [0x4f7510]
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jne 0x410ce0
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410cd9
mov esi, eax
call fcn.00415ef0
jmp 0x410cdb
xor eax, eax
mov dword [0x4f7510], eax
push ebx
push 0xfa1
mov esi, eax
call fcn.0041a590
push 0x206
lea edx, [esp + 0x3e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x44], cx
call fcn.004276b0
add esp, 0x14
push 0x206
lea ecx, [esp + 0x23e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x244], ax
call fcn.004276b0
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x238]
push eax
push ebx
push 0x4cecc0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x410d98
xor eax, eax
jmp 0x410d60
movzx ecx, word [esp + eax + 0x238]
mov word [esp + eax + 0x30], cx
add eax, 2
cmp cx, bx
jne 0x410d60
lea eax, [esp + 0x30]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x410d80
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x28], dx
jmp 0x410dcf
lea eax, [esp + 0x30]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x410da0
mov ecx, dword [str.tmpgpp]
mov edx, dword [0x4cdaec]
mov dword [eax], ecx
mov ecx, dword [0x4cdaf0]
mov dword [eax + 4], edx
mov edx, dword [0x4cdaf4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push 1
lea ecx, [esp + 0x34]
mov edx, esi
call fcn.00414c50
call fcn.00410960
push ebx
push 0xfa2
call fcn.0041a590
mov eax, dword [0x4f36ec]
mov edx, dword [eax + 0xc]
add esp, 8
mov ecx, 0x4f36ec
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x410e2f
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410e28
mov esi, eax
call fcn.00415ef0
jmp 0x410e2a
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x208
push eax
push str._sApps
lea edi, [esp + 0x2c]
call fcn.00404650
mov eax, dword [0x4f7510]
add esp, 8
cmp eax, ebx
jne 0x410e70
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410e69
mov esi, eax
call fcn.00415ef0
jmp 0x410e6b
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [esp + 0x24]
push 1
push 0x4cb44c
push ecx
mov ecx, eax
call fcn.00413080
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x410ec4
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410ebd
mov esi, eax
call fcn.00415ef0
jmp 0x410ebf
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x208
push eax
push str._sMain
lea edi, [esp + 0x28]
call fcn.00404650
mov eax, dword [0x4f7510]
add esp, 8
cmp eax, ebx
jne 0x410f05
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410efe
mov esi, eax
call fcn.00415ef0
jmp 0x410f00
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [esp + 0x20]
push 2
push 0x4cb44c
push ecx
mov ecx, eax
call fcn.00413080
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x4f7510]
cmp eax, ebx
jne 0x410f59
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410f52
mov esi, eax
call fcn.00415ef0
jmp 0x410f54
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x208
push eax
push str._sSDK
lea edi, [esp + 0x30]
call fcn.00404650
mov eax, dword [0x4f7510]
add esp, 8
cmp eax, ebx
jne 0x410f9a
push 0x24d0
call fcn.0042336c
add esp, 4
cmp eax, ebx
je 0x410f93
mov esi, eax
call fcn.00415ef0
jmp 0x410f95
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [esp + 0x28]
push 3
push 0x4cb44c
push ecx
mov ecx, eax
call fcn.00413080
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov ecx, dword [0x4f7510]
test ecx, ecx
jne 0x410fe3
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x410fdb
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x410fdd
xor ecx, ecx
mov dword [0x4f7510], ecx
mov edx, dword [ecx + 0x2294]
sub edx, dword [ecx + 0x2290]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x41111d
test ecx, ecx
jne 0x411032
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x41102a
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x41102c
xor ecx, ecx
mov dword [0x4f7510], ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x41105e
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411056
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x411058
xor ecx, ecx
mov dword [0x4f7510], ecx
mov edi, ecx
test ecx, ecx
jne 0x411088
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411080
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x411082
xor ecx, ecx
mov dword [0x4f7510], ecx
mov ebx, dword [ecx + 0x2290]
mov ecx, dword [esp + 0x1c]
add ebx, dword [esp + 0x10]
add ecx, 0x1c70
lea edx, [edi + 0x208]
call fcn.00413850
mov ebx, eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x4110d3
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4110cc
mov esi, eax
call fcn.00415ef0
jmp 0x4110ce
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [eax + 0x2290]
mov esi, dword [esp + 0x10]
lea edx, [esi + ecx + 0x208]
movzx ecx, word [ebx]
mov word [edx], cx
add ebx, 2
add edx, 2
test cx, cx
jne 0x4110e4
mov edx, dword [eax + 0x2290]
lea ecx, [esi + edx]
lea edx, [ecx + 0x208]
push eax
call fcn.00413930
inc dword [esp + 0x14]
add esi, 0x410
mov dword [esp + 0x10], esi
jmp 0x410fb5
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea ecx, [ecx]
test ecx, ecx
jne 0x411158
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411150
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x411152
xor ecx, ecx
mov dword [0x4f7510], ecx
mov edx, dword [ecx + 0x22a4]
sub edx, dword [ecx + 0x22a0]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jae 0x4113c6
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x4111c0
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4111b9
mov esi, eax
call fcn.00415ef0
jmp 0x4111bb
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x208
push eax
push str._sMain
lea edi, [esp + 0x18]
call fcn.00404650
mov eax, dword [0x4f7510]
add esp, 8
test eax, eax
jne 0x411201
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4111fa
mov esi, eax
call fcn.00415ef0
jmp 0x4111fc
xor eax, eax
mov dword [0x4f7510], eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 4], 1
mov dword [esp + 0x1c], eax
jle 0x411226
mov ecx, dword [edi - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00403690
mov edi, dword [esp + 0x10]
mov eax, dword [0x4f7510]
test eax, eax
jne 0x41124b
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411244
mov esi, eax
call fcn.00415ef0
jmp 0x411246
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, dword [eax + 0x22a0]
mov ecx, dword [esp + 0x1c]
add ebx, dword [esp + 0x18]
add ecx, 0x410
mov edx, edi
call fcn.00413850
mov ebx, eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x411292
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x41128b
mov esi, eax
call fcn.00415ef0
jmp 0x41128d
xor eax, eax
mov dword [0x4f7510], eax
mov eax, dword [eax + 0x22a0]
mov edi, dword [esp + 0x18]
lea ecx, [eax + edi + 0x208]
movzx eax, word [ebx]
mov word [ecx], ax
add ebx, 2
add ecx, 2
test ax, ax
jne 0x4112a3
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x4113bc
cmp eax, dword [esi - 8]
jg 0x4113bc
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [0x4f7510]
test eax, eax
jne 0x411309
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411302
mov esi, eax
call fcn.00415ef0
jmp 0x411304
xor eax, eax
mov dword [0x4f7510], eax
mov eax, dword [eax + 0x22a0]
add eax, edi
lea ecx, [eax + 0x208]
push ecx
push eax
push str.wOldFilePath___s__wNewFilePath___s
push 0xb3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x4f6d14]
push eax
push str.InstallSlient.cpp
push 1
push edx
mov eax, str.CInstallSlient::MoveFileToDirectory
call fcn.00403090
mov eax, dword [0x4f7510]
add esp, 0x20
test eax, eax
jne 0x41136f
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411368
mov esi, eax
call fcn.00415ef0
jmp 0x41136a
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [eax + 0x22a0]
add ecx, edi
lea edx, [ecx + 0x208]
push eax
call fcn.00413930
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4113a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x14]
mov ecx, dword [0x4f7510]
add edi, 0x410
mov dword [esp + 0x18], edi
jmp 0x411130
push 0x80070057
call fcn.00402e50
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
test ecx, ecx
jne 0x4113fe
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4113f6
mov esi, eax
call fcn.00415ef0
mov ecx, eax
jmp 0x4113f8
xor ecx, ecx
mov dword [0x4f7510], ecx
mov edx, dword [ecx + 0x22b4]
sub edx, dword [ecx + 0x22b0]
mov eax, 0x7e07e07f
imul edx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x18], ecx
jae 0x41164b
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x411466
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x41145f
mov esi, eax
call fcn.00415ef0
jmp 0x411461
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x208
push eax
push str._sSDK
lea edi, [esp + 0x24]
call fcn.00404650
mov eax, dword [0x4f7510]
add esp, 8
test eax, eax
jne 0x4114a7
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4114a0
mov esi, eax
call fcn.00415ef0
jmp 0x4114a2
xor eax, eax
mov dword [0x4f7510], eax
mov edx, dword [0x4f36ec]
mov esi, dword [eax + 0x22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
add esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
je 0x4114ec
test esi, 0xffff0000
jne 0x4114f0
movzx edi, si
call fcn.00402ee0
test eax, eax
je 0x411511
push eax
mov eax, edi
lea edi, [esp + 0x18]
call fcn.004034e0
jmp 0x411511
xor eax, eax
jmp 0x411504
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4114f5
sub eax, edx
sar eax, 1
push esi
lea ecx, [esp + 0x18]
push ecx
mov ebx, eax
call fcn.00403580
mov eax, dword [0x4f7510]
test eax, eax
jne 0x41153b
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411534
mov esi, eax
call fcn.00415ef0
jmp 0x411536
xor eax, eax
mov dword [0x4f7510], eax
mov ebx, dword [esp + 0x1c]
add eax, 0x1e78
push eax
push ebx
lea edx, [esp + 0x1c]
push edx
call fcn.00410490
mov eax, dword [0x4f7510]
test eax, eax
jne 0x41157a
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411573
mov esi, eax
call fcn.00415ef0
jmp 0x411575
xor eax, eax
mov dword [0x4f7510], eax
mov eax, dword [eax + 0x22b0]
add eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push edi
push eax
push str.wOldFilePath___s__wNewFilePath___s
push 0xbf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [0x4f6d14]
push str.InstallSlient.cpp
push 1
push eax
mov eax, str.CInstallSlient::MoveFileToDirectory
call fcn.00403090
mov eax, dword [0x4f7510]
add esp, 0x20
test eax, eax
jne 0x4115df
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x4115d8
mov esi, eax
call fcn.00415ef0
jmp 0x4115da
xor eax, eax
mov dword [0x4f7510], eax
mov ecx, dword [eax + 0x22b0]
add ecx, dword [esp + 0x10]
push eax
mov edx, edi
call fcn.00413930
test eax, eax
je 0x4115fc
mov ecx, dword [esp + 0x2c]
mov byte [ecx], 1
lea eax, [edi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411618
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411634
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x18]
add dword [esp + 0x10], 0x410
mov ecx, dword [0x4f7510]
jmp 0x4113d6
mov esi, dword [esp + 0x2c]
cmp byte [esi], 0
je 0x411673
cmp dword [0x4f751c], 0
jne 0x41166c
push 1
call fcn.0042336c
add esp, 4
mov dword [0x4f751c], eax
call fcn.004187e0
mov byte [esi], al
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411693
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4116b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4116d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret 4