Function at 0x412130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b788
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x60c9c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x124]
mov edx, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x128]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x12c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x424], eax
test edx, edx
jne 0x41218f
xor eax, eax
jmp 0x4121a3
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412194
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebx + 0x250]
call fcn.00403290
lea edi, [ebx + 0xd73c]
mov ecx, 0x45
lea esi, [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0040a860
test eax, eax
je 0x412699
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4121e9
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x428], eax
lea ecx, [ebp - 0x428]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0040ff40
test eax, eax
jne 0x412247
mov edx, dword [ebx + 0x264]
mov eax, dword [edx + 0xc]
lea ecx, [ebx + 0x264]
call eax
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41268d
mov esi, dword [ebp + 0x120]
push esi
mov word [ebx + 0xd738], si
call fcn.00408530
push esi
mov dword [ebx + 0xd724], eax
call fcn.00408650
push esi
mov dword [ebx + 0xd730], eax
call fcn.004086a0
push esi
mov dword [ebx + 0xd72c], eax
call fcn.00408780
push esi
mov dword [ebx + 0xd728], eax
call fcn.004084e0
push 0x55c8ac
push esi
mov dword [ebx + 0xd734], eax
call fcn.004086f0
add esp, 0x1c
cmp dword [ebx + 0xd730], 0
mov dword [ebx + 0xd720], eax
je 0x412670
cmp dword [ebx + 0xd72c], 0
je 0x412670
cmp dword [ebx + 0xd728], 0
je 0x412670
mov ecx, dword [ebp - 0x42c]
push ecx
lea ecx, [ebx + 0xd70c]
call fcn.00403770
mov edx, dword [ebp - 0x434]
push edx
lea ecx, [ebx + 0xd710]
call fcn.00403770
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebx + 0xd71c]
call fcn.00403770
mov ecx, ebx
call fcn.0040cd00
mov ecx, dword [ebp + 0x130]
push 0xf
lea esi, [ebx + 0xc]
push esi
push ecx
call fcn.00408820
add esp, 0xc
mov dword [ebx + 4], eax
test eax, eax
je 0x41233d
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push esi
call fcn.00405b90
mov ecx, ebx
call fcn.0040c400
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.0040dd10
push 1
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.00408a10
mov ecx, ebx
mov dword [ebx + 0xd708], eax
call fcn.0040b1b0
mov edx, dword [ebx + 0xd858]
push edx
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.00410300
push eax
lea ecx, [ebx + 0x240]
mov byte [ebp - 4], 1
call fcn.004034d0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 0
call fcn.00402e70
push 0
lea ecx, [ebp - 0x424]
push ecx
mov ecx, ebx
call fcn.00410300
push eax
lea ecx, [ebx + 0x244]
mov byte [ebp - 4], 2
call fcn.004034d0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 0
call fcn.00402e70
push 1
lea edx, [ebp - 0x424]
push edx
mov ecx, ebx
call fcn.00410300
lea ecx, [ebx + 0x248]
push eax
mov byte [ebp - 4], 3
call fcn.004034d0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 0
call fcn.00402e70
mov eax, dword [ebx + 0x240]
cmp dword [eax - 0xc], 0
je 0x412498
mov ecx, dword [ebx + 0x244]
cmp dword [ecx - 0xc], 0
je 0x412498
mov edx, dword [ebx + 0x248]
cmp dword [edx - 0xc], 0
je 0x412498
push 1
lea eax, [ebp - 0x424]
push eax
mov ecx, ebx
call fcn.0040e330
push eax
lea ecx, [ebx + 0x254]
mov byte [ebp - 4], 4
call fcn.004034d0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 0
call fcn.00402e70
movzx ecx, word [ebx + 0xd738]
push ecx
call fcn.004087d0
mov edx, dword [ebx + 0x254]
push eax
push str.readme
push edx
lea eax, [ebx + 0x238]
push 0x55efb8
push eax
call fcn.004047a0
push 0x208
lea esi, [ebx + 0x30]
push 0
push esi
call fcn.00531fb0
add esp, 0x24
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4124a8
lea ecx, [ebp - 0x428]
call fcn.00402e70
jmp 0x412699
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.00531fb0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
mov ecx, ebx
call fcn.0040a130
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebx + 0x260]
call fcn.00403770
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00531fb0
add esp, 0xc
push 1
push 0x23
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebx + 0x24c]
call fcn.00403770
lea esi, [ebx + 0x23c]
push str.SetupTemp
mov ecx, esi
call fcn.00403770
lea ecx, [ebp - 0x42c]
call fcn.00403010
lea eax, [ebp - 0x430]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040e500
mov ecx, dword [ebp - 0x430]
cmp dword [ecx - 0xc], 0
mov byte [ebp - 4], 6
je 0x412597
lea ecx, [ebp - 0x430]
call fcn.00405390
push eax
lea ecx, [ebp - 0x42c]
call fcn.00403770
lea ecx, [ebp - 0x430]
call fcn.00405390
push eax
mov ecx, esi
call fcn.00403770
lea ecx, [ebp - 0x450]
call fcn.0043f9a5
mov ecx, esi
mov byte [ebp - 4], 7
mov edi, 1
add ebx, 0x258
call fcn.00405390
push eax
lea edx, [ebp - 0x218]
push edx
push 0x55d250
push ebx
call fcn.004047a0
mov eax, dword [ebx]
add esp, 0x10
push 0
push eax
lea ecx, [ebp - 0x450]
call fcn.0043fa4c
test eax, eax
je 0x412631
mov ecx, esi
call fcn.00402e90
mov eax, dword [ebp - 0x42c]
push edi
push eax
push str._s__d
push esi
call fcn.004047a0
add esp, 0x10
mov ecx, esi
inc edi
call fcn.00405390
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x55d250
push ebx
call fcn.004047a0
mov eax, dword [ebx]
add esp, 0x10
push 0
push eax
lea ecx, [ebp - 0x450]
call fcn.0043fa4c
test eax, eax
jne 0x4125e2
lea ecx, [ebp - 0x450]
call fcn.0043f52f
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 6
call fcn.0043f9d7
lea ecx, [ebp - 0x430]
call fcn.00402e70
lea ecx, [ebp - 0x42c]
call fcn.00402e70
lea ecx, [ebp - 0x428]
call fcn.00402e70
xor eax, eax
jmp 0x41269e
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412699
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x643
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531f97
mov esp, ebp
pop ebp
ret 0x12c