Function at 0x417e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675492
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x71506c]
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 esi, dword [ebp + 0xc]
lea eax, [ebp - 0x114]
push 0x104
push 0
push eax
xor bl, bl
call fcn.00508390
add esp, 0xc
lea ecx, [ebp - 0x29c]
call fcn.004e0d30
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esi + 0x1fc]
mov edi, dword [esi + 0x1f8]
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x28c], edi
cmp edi, eax
je 0x418377
add esi, 0x30
mov dword [ebp - 0x284], esi
nop word [eax + eax]
push edi
lea ecx, [ebp - 0x12c]
call fcn.00405f50
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417f40
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
mov ecx, esi
call fcn.004063f0
push esi
call fcn.004d01dd
add esp, 4
test eax, eax
jne 0x417fbf
mov edx, dword [esi + 0x14]
mov eax, edx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x417fa2
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x417f83
mov eax, dword [esi]
push 1
lea esi, [eax + ecx]
push 0x6fc798
push esi
call fcn.00507e10
mov byte [esi + 1], 0
add esp, 0xc
mov esi, dword [ebp - 0x284]
jmp 0x417fbf
push 1
push 0x6fc798
mov byte [ebp - 0x290], 0
mov ecx, esi
push dword [ebp - 0x290]
push 1
call fcn.00407030
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov ebx, edx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x417fe1
mov eax, dword [esi + 0x14]
sub ebx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp ebx, eax
ja 0x418020
cmp dword [esi + 0x14], 0x10
lea eax, [ecx + ebx]
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x418006
mov eax, dword [esi]
push ebx
lea esi, [eax + ecx]
push edx
push esi
call fcn.00507e10
mov byte [esi + ebx], 0
add esp, 0xc
mov esi, dword [ebp - 0x284]
jmp 0x418037
push ebx
push edx
mov byte [ebp - 0x294], 0
mov ecx, esi
push dword [ebp - 0x294]
push ebx
call fcn.00407030
push 0
push 0
push 0x415130
push 0x3a8
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00405f50
lea eax, [ebp - 0x15c]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x41806b
mov eax, dword [eax]
push eax
push 0x3a8
sub esp, 0x18
lea eax, [ebp - 0x12c]
mov ecx, esp
push eax
call fcn.00405f50
lea eax, [ebp - 0x144]
push eax
call fcn.004d08fb
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x41809d
mov eax, dword [eax]
push eax
call fcn.004e1370
mov byte [ebp - 4], 2
add esp, 0x14
mov edx, dword [ebp - 0x130]
mov bl, al
mov byte [ebp - 0x27d], bl
cmp edx, 8
jb 0x4180f2
mov ecx, dword [ebp - 0x144]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4180e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183a2
push edx
push ecx
call fcn.00430080
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
cmp edx, 8
jb 0x418153
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418149
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183a2
push edx
push ecx
call fcn.00430080
add esp, 8
call fcn.004d5ab1
test bl, bl
jne 0x418285
test al, al
je 0x41822d
mov eax, dword [0x725d28]
test eax, eax
je 0x41822d
cmp dword [eax + 4], 5
jl 0x41822d
sub esp, 0xc
lea ecx, [ebp - 0x27c]
push 0x258
push str.CDoWebInstLogic::OnGetHotSoftLogic
push 5
call fcn.0040e3c0
mov dword [ebp - 0x288], eax
lea ebx, [eax + 0x30]
mov byte [ebp - 4], 5
mov edx, str.ins_hot_soft:_dlfile_:
mov ecx, ebx
call fcn.0040e230
cmp dword [ebp - 0x118], 0x10
lea edx, [ebp - 0x12c]
mov ecx, ebx
cmovae edx, dword [ebp - 0x12c]
call fcn.0040e230
mov edx, str._fail
mov ecx, ebx
call fcn.0040e230
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x4181e3
mov edx, dword [esi]
mov ecx, ebx
call fcn.0040e230
mov ebx, dword [0x725d28]
mov esi, dword [ebx + 8]
cmp esi, dword [ebx + 0xc]
je 0x418216
mov edi, dword [ebp - 0x288]
nop
mov ecx, dword [esi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebx + 0xc]
jne 0x418200
mov edi, dword [ebp - 0x28c]
lea ecx, [ebp - 0x27c]
call fcn.0040e7c0
mov esi, dword [ebp - 0x284]
mov bl, byte [ebp - 0x27d]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x41826b
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418261
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183a2
push edx
push ecx
call fcn.00430080
add esp, 8
add edi, 0x18
mov dword [ebp - 0x28c], edi
cmp edi, dword [ebp - 0x298]
jne 0x417f20
jmp 0x418377
test al, al
je 0x418341
mov eax, dword [0x725d28]
test eax, eax
je 0x418341
cmp dword [eax + 4], 5
jl 0x418341
sub esp, 0xc
lea ecx, [ebp - 0x27c]
push 0x250
push str.CDoWebInstLogic::OnGetHotSoftLogic
push 5
call fcn.0040e3c0
mov ebx, eax
mov edx, str.ins_hot_soft:_dlfile_:
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x30]
call fcn.0040e230
cmp dword [ebp - 0x118], 0x10
lea edx, [ebp - 0x12c]
lea ecx, [ebx + 0x30]
cmovae edx, dword [ebp - 0x12c]
call fcn.0040e230
mov edx, str._ok
lea ecx, [ebx + 0x30]
call fcn.0040e230
cmp dword [esi + 0x14], 0x10
jb 0x418302
mov esi, dword [esi]
mov edx, esi
lea ecx, [ebx + 0x30]
call fcn.0040e230
mov edi, dword [0x725d28]
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0xc]
je 0x418330
nop word [eax + eax]
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [edi + 0xc]
jne 0x418320
lea ecx, [ebp - 0x27c]
call fcn.0040e7c0
mov bl, byte [ebp - 0x27d]
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x418377
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41836d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4183a2
push edx
push ecx
call fcn.00430080
add esp, 8
lea ecx, [ebp - 0x29c]
call fcn.004e0e70
mov al, bl
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.0042fa05
mov esp, ebp
pop ebp
ret 8
call fcn.0050c210
int3