Function at 0x5806d0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0xbb8
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0xbc4]
push esi
jne 0x5808bd
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x3e7
push 0x644d50
mov dword [0x644d48], eax
call fcn.00423a00
mov esi, dword [esp + 0xbd4]
mov dword [0x644d44], 0
mov al, byte [esi]
add esp, 8
test al, al
je 0x5809cf
mov ebx, dword [esp + 0xbd0]
cmp byte [ebx], 0
je 0x5809cf
push 0x644d50
push 0x3e7
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x5809cf
push edi
mov edi, 0x644d50
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x580761
mov eax, dword [str.update.ini]
mov ecx, dword [0x5f0e14]
mov dx, word [0x5f0e18]
mov dword [edi], eax
mov al, byte [0x5f0e1a]
mov dword [edi + 4], ecx
mov word [edi + 8], dx
push 0
mov byte [edi + 0xa], al
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x644d50
push str.started
push str.state
push str.update
call fcn.004c9500
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
pop edi
jne 0x5809cf
push 0x644d50
push esi
push str.store
push str.update
call fcn.004c9500
push 0x644d50
push ebx
push 0x5f0dec
push str.update
call fcn.004c9500
mov ecx, dword [esp + 0xbf4]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x418]
push 0x5e6a4c
push edx
call esi
push 0x644d50
lea eax, [esp + 0x424]
push eax
push 0x5e9244
push str.update
call fcn.004c9500
push 0x644d50
push 0
push 0
push 0
call fcn.004c9500
mov edx, dword [0x645320]
add esp, 0x4c
push 0x104
lea ecx, [esp + 0x3f8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x5809cf
push 0x644d50
push str.update
lea eax, [esp + 0x7e4]
push 0x5e6a64
push eax
call esi
push 0x644d44
push 1
lea ecx, [esp + 0x7f4]
push ecx
lea edx, [esp + 0x410]
push edx
call fcn.004249a0
add esp, 0x20
test eax, eax
je 0x5809cf
mov eax, dword [esp + 0xbc8]
push 0
push 0x1f4
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbb8
ret
mov al, byte [0x644d50]
test al, al
je 0x580a40
push 0x64
push ebp
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x644d44]
xor esi, esi
test eax, eax
je 0x5808ef
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x5808ef
mov esi, 1
lea ecx, [esp + 0xc]
push 0x3e7
push ecx
call fcn.00423a00
push 0x644d50
push 0x3e7
lea edx, [esp + 0x1c]
push edx
push 0x5e6c98
push str.state
push str.update
call fcn.004c9870
lea eax, [esp + 0x2c]
push str.updating
push eax
call fcn.005e31f5
add esp, 0x28
test eax, eax
je 0x5809cb
lea ecx, [esp + 0xc]
push str.failed
push ecx
call fcn.005e31f5
add esp, 8
test eax, eax
je 0x5809cf
lea edx, [esp + 0xc]
push str.finished
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x5809cb
mov al, byte [0x644d50]
test al, al
je 0x58098c
push 0x644d50
call fcn.005ce980
push 0x3e7
push 0x644d50
call fcn.00423a00
add esp, 0xc
mov eax, dword [0x644d44]
test eax, eax
je 0x58099c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x644d48]
test eax, eax
je 0x5809ac
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 1
push 0
push 0x8064
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xbb8
ret
test esi, esi
je 0x580a30
mov al, byte [0x644d50]
test al, al
je 0x5809f4
push 0x644d50
call fcn.005ce980
push 0x3e7
push 0x644d50
call fcn.00423a00
add esp, 0xc
mov eax, dword [0x644d44]
test eax, eax
je 0x580a04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x644d48]
test eax, eax
je 0x580a14
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push 0
push 0x8064
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbb8
ret
push 0
push 0x1f4
push 0x64
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0xbb8
ret