Function at 0x40de20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b0d36
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4f2888]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
push 0
push 0
push 0x84
mov esi, ecx
call fcn.00429340
push 0
mov ecx, esi
call fcn.004288b0
push 1
push 0xd
push 0xfa
push 0x2b
lea edi, [esi + 0xd0]
push 0x5e
mov ecx, edi
call fcn.0043709e
mov eax, dword [esi + 0xcc]
mov eax, dword [eax + 0x131c]
cmp dword [eax - 0xc], 0
jne 0x40dead
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx + 0x131c]
push eax
mov ecx, edi
call fcn.00437013
push 1
push 0xe
push 0x64
push 0xa
lea ebx, [esi + 0x124]
push 0x122
mov ecx, ebx
call fcn.0043709e
push 0x103
lea edx, [esp + 0x25]
push 0
push edx
mov byte [esp + 0x2c], 0
call fcn.00480970
add esp, 0xc
call fcn.004329d2
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.0042f8f6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40df27
push 0x80004005
call fcn.00401040
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x138], 0
call fcn.0040dd30
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x24]
push str.Version_:__s
push ecx
mov byte [esp + 0x144], 1
call fcn.00407880
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x130], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40df96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push edi
mov ecx, ebx
call fcn.00437013
sub esp, 0x10
mov eax, esp
mov ecx, 0x15e
push 0
mov dword [eax], ecx
push ecx
mov edx, 0x28
lea ebp, [ecx + 0x1b]
mov dword [eax + 4], edx
lea ebx, [edx + 0x16]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [eax + 8], ebp
push str.BTN_SEARCH
mov dword [eax + 0xc], ebx
call fcn.004021a0
push 0xd1
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
lea ecx, [ebp - 0x6c]
push 0
mov dword [eax], ecx
push ecx
lea edx, [ecx - 0x1b]
lea ebx, [ebp - 0x39]
lea ebp, [ecx - 3]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [eax + 8], ebx
push str.BTN_OK
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0x93
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
lea ecx, [ebx + 5]
push 0
mov dword [eax], ecx
push ecx
lea edx, [ebx - 0x4e]
mov dword [eax + 4], edx
lea ebx, [ebp + 0x6e]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [eax + 8], ebx
push str.BTN_CANCEL
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0x92
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
mov ecx, 0x14
push 1
mov dword [eax], ecx
push ecx
lea edx, [ecx + 0x6e]
lea ebx, [ebp - 6]
lea ebp, [ecx + 0x7c]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [eax + 8], ebx
push str.CHK_DOWN_START
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0xc4
mov ecx, esi
call fcn.00429ad0
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0x22]
sub esp, 0x10
mov eax, esp
push 1
mov dword [eax], ecx
push ecx
lea ebp, [ecx + 0x68]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [eax + 8], ebx
push str.CHK_DOWN_PATH
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0xc3
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
lea ecx, [ebp - 0x68]
push 1
mov dword [eax], ecx
push ecx
lea edx, [ebx - 0x6e]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea ebp, [ebx - 0x60]
mov dword [eax + 8], ebx
push str.CHK_DOWN_EXIT
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0xc6
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
mov ecx, 0x14
push 1
mov dword [eax], ecx
push ecx
lea edx, [ebx - 0x5a]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea ebp, [ebx - 0x4c]
mov dword [eax + 8], ebx
push str.CHK_DOWN_VIEW
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0xc7
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
mov ecx, 0x14
push 1
mov dword [eax], ecx
push ecx
lea edx, [ebx - 0x46]
mov dword [eax + 4], edx
mov ecx, esp
mov dword [esp + 0x2c], esp
lea ebp, [ebx - 0x38]
mov dword [eax + 8], ebx
push str.CHK_DOWN_CONFIRM
mov dword [eax + 0xc], ebp
call fcn.004021a0
push 0xc5
mov ecx, esi
call fcn.00429ad0
sub esp, 0x10
mov eax, esp
mov ecx, 0x14
mov dword [eax], ecx
lea edx, [ebx - 0x32]
mov dword [eax + 4], edx
lea ebp, [ebx - 0x24]
push 1
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.CHK_ADD_ICON
call fcn.004021a0
push 0xd8
mov ecx, esi
call fcn.00429ad0
lea eax, [edi - 0x10]
mov dword [esp + 0x130], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e1d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0047f7c9
add esp, 0x120
ret