Function at 0x4f8fb9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a40e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebx
push esi
push edi
mov dword [ebp - 0x250], ecx
mov eax, dword [ebp - 0x250]
cmp dword [eax + 8], 0
jne 0x4f9000
push 0xe6
push str.filelist.cpp
call fcn.00542620
test eax, eax
je 0x4f9000
int3
xor ecx, ecx
test ecx, ecx
jne 0x4f8fe0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.0053ebc6
test eax, eax
je 0x4f9042
cmp dword [ebp - 0x10], 0
je 0x4f9042
push 0
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0055199f
mov ecx, dword [ebp - 0x250]
mov ecx, dword [ecx + 8]
call fcn.0053ebc6
test eax, eax
je 0x4f9091
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.0053ebc6
test eax, eax
jne 0x4f9080
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.0053ebe4
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
call dword [eax + 0xc]
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
call dword [edx]
jmp 0x4f9429
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x4f909f
jmp 0x4f9429
mov dword [ebp - 0x228], 0
jmp 0x4f90ba
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x228]
cmp eax, dword [edx + 4]
jge 0x4f90e7
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call fcn.00551604
jmp 0x4f90ab
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jge 0x4f9129
push 0xfe
push str.filelist.cpp
call fcn.00542620
test eax, eax
je 0x4f9129
int3
xor eax, eax
test eax, eax
jne 0x4f910c
mov ecx, dword [ebp - 0x220]
mov word [ebp + ecx*2 - 0x218], 0x5c
mov edx, dword [ebp - 0x220]
add edx, 1
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
mov word [ebp + eax*2 - 0x218], 0
lea ecx, [ebp - 0x21c]
call fcn.0053eaa7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.0053eaa7
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], 0
jmp 0x4f919a
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x228]
cmp eax, dword [edx + 4]
jge 0x4f93de
push 1
mov ecx, dword [ebp - 0x220]
push ecx
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp - 0x250]
call fcn.004f8dbd
test eax, eax
jne 0x4f91e1
jmp 0x4f93de
lea ecx, [ebp - 0x21c]
call fcn.0053ebe4
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x21c]
call fcn.0053eb9a
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.004f0ebb
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x240]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x4f92b9
mov ecx, dword [ebp - 0x240]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x26
jne 0x4f924e
mov eax, dword [ebp - 0x244]
mov word [eax], 0x26
mov ecx, dword [ebp - 0x244]
add ecx, 2
mov dword [ebp - 0x244], ecx
xor edx, edx
test edx, edx
je 0x4f9284
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov dx, word [ecx]
mov word [eax], dx
mov eax, dword [ebp - 0x244]
add eax, 2
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x240]
add ecx, 2
mov dword [ebp - 0x240], ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov cx, word [eax]
mov word [edx], cx
mov edx, dword [ebp - 0x244]
add edx, 2
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x240]
add eax, 2
mov dword [ebp - 0x240], eax
jmp 0x4f9211
mov ecx, dword [ebp - 0x244]
mov word [ecx], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.004f0ff7
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x228]
lea eax, [ecx + eax + 1]
xor edx, edx
mov ecx, 0xa
div ecx
push edx
push str._d
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x248]
call fcn.004f0791
mov dword [ebp - 0x254], eax
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x258]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004f0ad5
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x260], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x260]
call fcn.0053ebe4
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
push 0x400
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call fcn.00551af4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004f0700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.004f0700
jmp 0x4f918b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
call fcn.00551859
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004f0700
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004f0700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4