Function at 0x40dd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ad11
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4737e0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4737e0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
mov esi, ecx
push eax
push esi
mov dword [esp + 0x2c], esi
call fcn.0040dab0
mov dword [esp + 0x260], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x40ddb7
push 5
push 0x465710
lea ecx, [esp + 0x24]
call fcn.00401ef0
lea ebx, [esp + 0x1c]
call fcn.00414e80
mov ebx, eax
call fcn.00414f00
push 0x462d74
lea ecx, [esp + 0x18]
call fcn.00401ac0
mov byte [esp + 0x260], 1
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x40df05
lea esp, [esp]
mov esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x3c], esp
mov edi, esp
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40de22
cmp eax, dword [esi]
jne 0x40de22
mov ebx, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40de5d
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40df1f
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0043c397
add esp, 0x10
lea ecx, [esp + 0x1c]
add ebx, 0x10
push ecx
mov dword [edi], ebx
call fcn.0040d5b0
mov byte [esp + 0x260], 2
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40decb
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40debd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40debd
push eax
call fcn.00401ff0
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40deb4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x40decb
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ef0
mov byte [esp + 0x260], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40def3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x40ddf0
mov esi, dword [esp + 0x24]
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40df24
push 0x80004005
call fcn.00401090
call fcn.00402060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x260], 3
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40df56
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x260], 4
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40df88
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x260], 5
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dfba
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov byte [esp + 0x260], 6
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40dfec
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x260], 7
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x40e013
or edx, 0xffffffff
jmp 0x40e034
push str.SoftName
push ecx
call fcn.0043c336
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40e02e
or edx, 0xffffffff
jmp 0x40e034
sub eax, ecx
sar eax, 1
mov edx, eax
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 0xb
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00414c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 8
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x40e095
or eax, 0xffffffff
jmp 0x40e0b2
push 0x465730
push eax
call fcn.0043c336
add esp, 8
test eax, eax
jne 0x40e0ac
or eax, 0xffffffff
jmp 0x40e0b2
sub eax, dword [esp + 0x14]
sar eax, 1
dec eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402f10
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x264], 9
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e0fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x40e10b
or edx, 0xffffffff
jmp 0x40e12c
push 0x465734
push ecx
call fcn.0043c336
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40e126
or edx, 0xffffffff
jmp 0x40e12c
sub eax, ecx
sar eax, 1
mov edx, eax
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 7
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00414c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 0xa
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40e18c
or eax, 0xffffffff
jmp 0x40e1a9
push 0x465730
push eax
call fcn.0043c336
add esp, 8
test eax, eax
jne 0x40e1a3
or eax, 0xffffffff
jmp 0x40e1a9
sub eax, dword [esp + 0x14]
sar eax, 1
dec eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402f10
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x264], 0xb
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e1f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x40e202
or edx, 0xffffffff
jmp 0x40e223
push str.DownLink
push ecx
call fcn.0043c336
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40e21d
or edx, 0xffffffff
jmp 0x40e223
sub eax, ecx
sar eax, 1
mov edx, eax
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 0xb
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00414c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 0xc
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e274
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40e283
or eax, 0xffffffff
jmp 0x40e2a0
push 0x465730
push eax
call fcn.0043c336
add esp, 8
test eax, eax
jne 0x40e29a
or eax, 0xffffffff
jmp 0x40e2a0
sub eax, dword [esp + 0x14]
sar eax, 1
dec eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402f10
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x264], 0xd
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e2ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jge 0x40e2f9
or edx, 0xffffffff
jmp 0x40e31a
push str.SoftSize
push ecx
call fcn.0043c336
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40e314
or edx, 0xffffffff
jmp 0x40e31a
sub eax, ecx
sar eax, 1
mov edx, eax
mov eax, dword [ecx - 0xc]
sub eax, edx
sub eax, 0xb
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00414c00
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x264], 0xe
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e36b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x40e37a
or eax, 0xffffffff
jmp 0x40e397
push 0x465768
push eax
call fcn.0043c336
add esp, 8
test eax, eax
jne 0x40e391
or eax, 0xffffffff
jmp 0x40e397
sub eax, dword [esp + 0x14]
sar eax, 1
dec eax
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402f10
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x264], 0xf
call fcn.00401d60
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e3e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x40e3fe
mov ecx, dword [esi + 0x190]
lea edx, [esp + 0x2c]
add ecx, 4
push edx
call fcn.00401d60
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40e5b9
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x190]
lea edx, [esp + 0x20]
add ecx, 8
push edx
call fcn.00401d60
mov ebx, dword [esp + 0x20]
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push ebx
call fcn.00401ff0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [esp + 0x1c]
call fcn.00415980
add esp, 4
mov byte [esp + 0x260], 0x10
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40e46e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x4e]
mov byte [esp + 0x268], 0x11
push edx
mov word [esp + 0x50], cx
call fcn.0043ebe0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x34]
push 0x46576c
push ecx
call fcn.00402130
mov esi, dword [esp + 0x3c]
add esp, 0x10
add esi, 0xfffffff0
mov dword [esp + 0x44], esp
mov edi, esp
push esi
call fcn.00401ff0
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x44], esp
mov edi, esp
push ebx
mov byte [esp + 0x26c], 0x12
call fcn.00401ff0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x268], 0x11
call fcn.00401180
add esp, 4
mov dword [esp + 0x40], esp
mov edi, esp
push esi
call fcn.00401ff0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004154f0
add esp, 4
test eax, eax
je 0x40e570
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x40e561
mov edx, dword [esp + 0x28]
lea eax, [edi + 4]
push eax
push edx
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x40e563
xor edi, edi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x190]
mov dword [ecx + 0x28], edi
mov byte [esp + 0x260], 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40e591
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x260], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x30]
cmp dword [ebx - 0xc], 0
mov esi, dword [esp + 0x24]
je 0x40e5da
mov ecx, dword [esi + 0x190]
lea edx, [esp + 0x30]
add ecx, 0xc
push edx
call fcn.00401d60
mov edi, dword [esp + 0x34]
cmp dword [edi - 0xc], 0
je 0x40e5f7
mov ecx, dword [esi + 0x190]
lea eax, [esp + 0x34]
add ecx, 0x10
push eax
call fcn.00401d60
mov ecx, dword [esi + 0x190]
lea edx, [esp + 0x1c]
push edx
call fcn.00401d60
mov byte [esp + 0x260], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e62f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x260], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e653
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x260], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e677
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 3
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 0x40e69f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x260], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e6ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x260], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e71a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0043bfab
mov esp, ebp
pop ebp
ret