Function at 0x413300
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5ccd0b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x613ad0]
xor eax, esp
mov dword [esp + 0x828], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x613ad0]
xor eax, esp
push eax
lea eax, [esp + 0x840]
mov dword fs:[0], eax
mov eax, dword [esp + 0x854]
mov ebp, dword [esp + 0x850]
mov edi, ecx
lea ecx, [edi + 0xa4]
mov dword [edi + 0x74], eax
call fcn.00401f60
lea ecx, [edi + 0xa0]
call fcn.00401f60
test ebp, ebp
lea ecx, [edi + 0x9c]
jne 0x413372
xor eax, eax
jmp 0x413386
mov eax, ebp
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x413377
sub eax, esi
sar eax, 1
push eax
push ebp
call fcn.00402270
call fcn.0057e772
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4133a7
push 0x80004005
call fcn.00401a10
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x105
sub eax, ebx
or eax, ecx
mov dword [esp + 0x848], 0
jge 0x4133e6
push ebx
lea ecx, [esp + 0x18]
call fcn.00401fd0
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], ebx
jge 0x4133f5
push 0x80070057
call fcn.00401a10
push esi
mov dword [esi - 0xc], ebx
push 0x104
mov word [esi + 0x20a], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, esi
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x413412
sub ecx, ebx
sar ecx, 1
js 0x4133eb
cmp ecx, dword [esi - 8]
jg 0x4133eb
test eax, eax
mov dword [esi - 0xc], ecx
mov word [esi + ecx*2], dx
je 0x41355a
cmp eax, 0x104
jg 0x41355a
add eax, 0xffffffff
js 0x4133eb
cmp eax, dword [esi - 0xc]
jg 0x4133eb
movzx eax, word [esi + eax*2]
cmp ax, 0x5c
je 0x413464
push 0x5d869c
lea ecx, [esp + 0x18]
call fcn.00404560
push str._dummy_.html
lea ecx, [esp + 0x18]
call fcn.00404560
mov esi, dword [esp + 0x14]
push 0x5d9b40
push esi
call fcn.005ac643
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4134aa
lea eax, [esi - 0x10]
mov dword [esp + 0x848], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x413575
push str.whatever_n
push ebx
call fcn.005ac4e9
push ebx
call fcn.005ac46d
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x5d9b24
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
push esi
mov ebx, eax
call fcn.00589280
cmp ebx, 0x20
jbe 0x41354f
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x430]
push eax
push 0x104
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea edx, [esp + 0x42c]
lea esi, [edi + 0xa0]
push edx
mov ecx, esi
call fcn.00403db0
mov eax, dword [esi]
push ebp
push eax
lea eax, [edi + 0xa4]
push str._s__s
push eax
call fcn.00403ad0
add esp, 0x10
mov ecx, edi
call fcn.00412dd0
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x41354f
cmp dword [eax + 0x20], 0
je 0x41354f
mov ecx, dword [eax + 0x20]
push edi
push 0
push 0x263e
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x14]
call fcn.00401f40
jmp 0x413581
lea eax, [esi - 0x10]
mov dword [esp + 0x848], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413581
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x828]
xor ecx, esp
call fcn.005aac48
add esp, 0x838
ret 8