Function at 0x40f470
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3554]
mov eax, 0x3554
call fcn.005e00d0
push 0xffffffffffffffff
push 0x606f48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp + 0x3550], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x3560]
mov eax, dword [ebp + 0x355c]
mov edx, dword [ebp + 0x3564]
xor ebx, ebx
push 0x820
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
lea ecx, [ebp + 0x8de]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], ebx
mov word [ebp + 0x8dc], ax
call fcn.005dfd60
add esp, 0xc
lea ecx, [ebp]
call fcn.0040afd0
push 0xfff
lea edx, [ebp + 0x1101]
push ebx
push edx
mov byte [ebp - 4], 1
mov byte [ebp + 0x1100], bl
call fcn.005dfd60
push 0x7ff
lea eax, [ebp + 0x2501]
push ebx
push eax
mov byte [ebp + 0x2500], bl
call fcn.005dfd60
push 0x3f
lea ecx, [ebp + 0x3511]
push ebx
push ecx
mov byte [ebp + 0x3510], bl
call fcn.005dfd60
push 0x3ff
lea edx, [ebp + 0x2d01]
push ebx
push edx
mov byte [ebp + 0x2d00], bl
call fcn.005dfd60
push 0x3ff
lea eax, [ebp + 0x2101]
push ebx
push eax
mov byte [ebp + 0x2100], bl
call fcn.005dfd60
mov ecx, 7
mov esi, str.http:__fps.escanav.com_ecsn_
lea edi, [ebp + 0x340c]
rep movsd dword es:[edi], dword [esi]
push 0xe7
lea ecx, [ebp + 0x3429]
push ebx
push ecx
mov dword [ebp - 0x24], ebx
movsb byte es:[edi], byte [esi]
call fcn.005dfd60
mov ecx, dword [ebp + 0x3568]
add esp, 0x48
cmp ecx, ebx
je 0x40f5ba
cmp byte [ecx], bl
je 0x40f5ba
lea edx, [ebp + 0x3510]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x40f5b0
mov esi, dword [ebp - 0x20]
cmp byte [ebp + 0x3510], bl
jne 0x40f614
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp + 0x3510]
push edx
push esi
call fcn.004fe960
cmp eax, ebx
jne 0x40f60c
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.0040b290
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3550]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x3554
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x3510], bl
je 0x40f5da
push 0x103
lea eax, [ebp + 0x3309]
push ebx
push eax
mov byte [ebp + 0x3308], bl
call fcn.005dfd60
push 0x207
lea ecx, [ebp + 0x3101]
push ebx
push ecx
mov byte [ebp + 0x3100], bl
call fcn.005dfd60
mov ecx, dword [ebp + 0x356c]
add esp, 0x18
cmp ecx, ebx
je 0x40f66c
cmp byte [ecx], bl
je 0x40f66c
lea edx, [ebp + 0x2500]
jmp 0x40f660
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x40f660
jmp 0x40f67e
mov ecx, esi
lea edx, [ebp + 0x2500]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x40f674
lea edx, [ebp + 0x2500]
push edx
call fcn.004db9b0
add esp, 4
push 0x610f54
lea eax, [ebp + 0x2500]
push 0x610f50
push eax
call fcn.004e9030
add esp, 0xc
lea ecx, [ebp + 0x3100]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40f6ce
push 0x61021c
lea edx, [ebp + 0x3100]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x1100]
push eax
push ebx
push 0x610f4c
lea ecx, [ebp + 0x3100]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [ebp + 0x1100]
push edx
call fcn.004e0670
add esp, 4
lea eax, [ebp + 0x1100]
push 0x2e
push eax
call fcn.005e0a00
add esp, 8
cmp eax, ebx
jne 0x40f718
xor eax, eax
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40f710
mov ecx, dword [str..ZIP]
mov dword [eax], ecx
mov dl, byte [0x610f48]
push 0x60c81c
mov byte [eax + 4], dl
lea eax, [ebp + 0x3308]
push eax
lea ecx, [ebp + 0x2500]
push ecx
push esi
lea edx, [ebp + 0x1100]
push edx
call fcn.004eab80
cmp eax, ebx
je 0x40f76b
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1100]
push ebx
push eax
call fcn.004ec5a0
add esp, 0x14
cmp eax, ebx
jne 0x40f76b
mov edi, 1
jmp 0x40f780
mov ecx, esi
lea edx, [ebp + 0x1100]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x40f773
mov edi, dword [ebp - 0x24]
push ebx
lea ecx, [ebp + 0x2100]
push ecx
lea edx, [ebp + 0x1100]
push edx
call fcn.004e8ec0
add esp, 0xc
lea eax, [ebp + 0x2100]
push 0x2e
push eax
call fcn.005e0a00
add esp, 8
cmp eax, ebx
je 0x40f7d7
cmp byte [eax + 1], bl
je 0x40f7d7
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
lea eax, [ebp + 0x3510]
push eax
lea ecx, [ebp + 0x2d00]
push str._s__s__s_s
push ecx
call fcn.005dfb23
add esp, 0x18
jmp 0x40f7fa
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push eax
lea ecx, [ebp + 0x3510]
push ecx
lea edx, [ebp + 0x2d00]
push str._s__s__s.UNK
push edx
call fcn.005dfb23
add esp, 0x14
push ebx
push 0x40cac0
lea ecx, [ebp]
call fcn.004087a0
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x1100]
push ecx
mov esi, 0x31
mov dword [ebp - 0x14], ebx
call fcn.004e8950
add esp, 0x18
cmp eax, ebx
jne 0x40f847
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x19000
jbe 0x40f847
mov eax, 0xcccccccd
mul ecx
shr edx, 0xe
cmp edx, esi
jb 0x40f847
mov esi, edx
imul esi, esi, 0x3e8
push esi
push ebx
push esi
push ebx
push ebx
lea ecx, [ebp]
call fcn.004090f0
push 0x410
lea edx, [ebp + 0x8dc]
push edx
push 0xffffffffffffffff
lea eax, [ebp + 0x340c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x40f8d9
push ebx
push str.PostFileToEscanServerEx
push ebx
push ebx
push ebx
lea ecx, [ebp + 0x2d00]
push ecx
push ebx
lea edx, [ebp + 0x1100]
push edx
push ebx
push ebx
push ebx
push eax
lea eax, [ebp + 0x8dc]
push eax
lea ecx, [ebp]
call fcn.0040d6c0
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x1c]
push edx
call fcn.004dca10
push 0xf
call fcn.004d5a60
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
jne 0x40f8c8
cmp edi, ebx
je 0x40f8ec
lea ecx, [ebp + 0x1100]
push ecx
call fcn.004e0670
add esp, 4
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.0040b290
mov eax, 1
jmp 0x40f5e7