Function at 0x517880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558e44
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x5c2b80]
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 dword [ebp - 0x48c], ecx
mov ecx, 0x5a7a64
mov dword [ebp - 0x234], 0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x490]
call fcn.00457210
mov ebx, eax
mov dword [ebp - 4], 0
mov ecx, 0x5a7a70
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x498]
call fcn.00457210
mov edi, eax
mov byte [ebp - 4], 1
mov ecx, 0x5a7a64
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x224]
call fcn.00457210
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
push 0x59266c
call fcn.00457210
mov byte [ebp - 4], 3
mov edx, eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 4
mov edx, eax
push edi
lea ecx, [ebp - 0x22c]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 5
mov edx, eax
push ebx
lea ecx, [ebp - 0x234]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 7
or edi, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51798a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov ecx, edi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5179ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov ecx, edi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5179d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
mov ecx, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5179f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov ecx, edi
mov edx, dword [ebp - 0x498]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517a16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517a39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x5a7a80
mov dword [ebp - 0x21c], 0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x490]
call fcn.00457210
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x21c]
mov ebx, dword [ebp - 0x48c]
push eax
lea edx, [ebx + 0x60]
call fcn.00457990
add esp, 4
mov byte [ebp - 4], 0x15
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517a98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
jne 0x517b08
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x494], esp
push str.uaZF3ev9Hsm9_FbIv7FdwqS2VNX_sV7A_uQIgrCXYKyogCc_qdCgqK3Rdih_FTVtA
call fcn.00457210
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x48c]
push eax
mov byte [ebp - 4], 0x15
mov ecx, ebx
call fcn.004fc4b0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x21c]
push eax
call fcn.0045be70
mov byte [ebp - 4], 0x15
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517b02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x517b2c
jns 0x517b1b
push 0x80070057
call fcn.00456ea0
cmp word [eax], 0x5f
jne 0x517b2c
lea ecx, [ebp - 0x21c]
call fcn.00456d00
mov ecx, 0x5a7e40
mov dword [ebp - 0x220], 0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x48c]
call fcn.00457210
mov byte [ebp - 4], 0x1a
lea edx, [ebx + 0x60]
push eax
lea ecx, [ebp - 0x220]
call fcn.00457990
add esp, 4
mov byte [ebp - 4], 0x1c
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517b85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jne 0x517bf5
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x494], esp
push 0x5a7e60
call fcn.00457210
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x490]
push eax
mov byte [ebp - 4], 0x1c
mov ecx, ebx
call fcn.004fc4b0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x220]
push eax
call fcn.0045be70
mov byte [ebp - 4], 0x1c
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517bef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x517c19
jns 0x517c08
push 0x80070057
call fcn.00456ea0
cmp word [eax], 0x5f
jne 0x517c19
lea ecx, [ebp - 0x220]
call fcn.00456d00
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
je 0x51807e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052ebd0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x228], 0
call fcn.00457760
mov byte [ebp - 4], 0x21
lea edx, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x48c]
call fcn.00479e80
add esp, 4
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x234]
push ecx
mov edx, eax
lea ecx, [ebp - 0x228]
call fcn.0045bbe0
add esp, 4
mov byte [ebp - 4], 0x24
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517cc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517ce8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x224], 0
call fcn.00457760
mov byte [ebp - 4], 0x28
lea edx, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x48c]
call fcn.00479e80
add esp, 4
mov byte [ebp - 4], 0x29
mov edx, eax
push str..txt
lea ecx, [ebp - 0x224]
call fcn.0045ebe0
add esp, 4
mov byte [ebp - 4], 0x2b
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517d52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
mov ecx, edi
mov edx, dword [ebp - 0x490]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517d75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x48c]
call fcn.0045b620
mov byte [ebp - 4], 0x2f
mov edx, eax
lea ecx, [ebp - 0x224]
call fcn.0045fd50
mov byte [ebp - 4], 0x2d
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517dba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x224]
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x22c]
call fcn.0045f880
mov byte [ebp - 4], 0x31
lea edx, [ebp - 0x228]
push 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.00460cf0
add esp, 8
test al, al
je 0x517fd0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
lea eax, [ebp - 0x488]
push eax
call fcn.00456ec0
mov edx, dword [ebp - 0x228]
mov ecx, eax
call fcn.00471420
cmp eax, 0xffffffff
setne cl
test cl, cl
je 0x517fac
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x3e8
call esi
push dword [ebp - 0x228]
lea ecx, [ebp - 0x48c]
call fcn.0045b620
mov byte [ebp - 4], 0x32
mov edx, eax
lea ecx, [ebp - 0x224]
call fcn.0045fd50
mov byte [ebp - 4], 0x31
mov ecx, edi
mov edx, dword [ebp - 0x48c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517e80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x224]
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
call fcn.0045f880
mov byte [ebp - 4], 0x34
push ecx
mov ecx, dword [ebp - 0x220]
mov esi, esp
add ecx, 0xfffffff0
mov dword [ebp - 0x494], esp
mov dword [ebp - 0x48c], esi
call fcn.00456280
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x36
push ecx
mov ecx, dword [ebp - 0x230]
mov esi, esp
mov dword [ebp - 0x48c], esp
mov dword [ebp - 0x490], esi
lea ecx, [ecx - 0x10]
call fcn.00456280
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0x38
mov byte [ebp - 4], 0x34
call fcn.00457810
add esp, 8
test al, al
jne 0x517fa0
mov ecx, 0x5a8190
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x494]
call fcn.00457210
mov esi, eax
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x498]
call fcn.004571a0
mov byte [ebp - 4], 0x3a
mov edx, eax
push esi
lea ecx, [ebp - 0x490]
call fcn.004f96b0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0x3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, esi
lea ecx, [ebp - 0x48c]
call fcn.004f9600
add esp, 4
mov byte [ebp - 4], 0x3c
mov ecx, ebx
push eax
call fcn.00511fe0
mov byte [ebp - 4], 0x3b
lea ecx, [ebp - 0x48c]
call fcn.00456040
mov byte [ebp - 4], 0x3a
lea ecx, [ebp - 0x490]
call fcn.00456040
mov byte [ebp - 4], 0x39
lea ecx, [ebp - 0x498]
call fcn.00456040
mov byte [ebp - 4], 0x34
lea ecx, [ebp - 0x494]
call fcn.00456040
mov byte [ebp - 4], 0x31
mov edx, dword [ebp - 0x230]
jmp 0x517ffc
mov ecx, 0x5a81d0
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x494]
call fcn.00457210
mov byte [ebp - 4], 0x3e
mov ecx, ebx
push eax
call fcn.00511fe0
jmp 0x517ff2
mov ecx, 0x5a8200
call fcn.004f06e0
push eax
lea ecx, [ebp - 0x494]
call fcn.00457210
mov byte [ebp - 4], 0x40
mov ecx, ebx
push eax
call fcn.00511fe0
mov byte [ebp - 4], 0x31
mov edx, dword [ebp - 0x494]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518015
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2d
mov ecx, edi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518038
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov ecx, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51805b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1c
mov ecx, edi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51807e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x15
mov ecx, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5180a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x11
mov ecx, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5180c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x5180e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0052ab62
mov esp, ebp
pop ebp
ret