Function at 0x4a9099
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559357
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 0x4a90e0
push 0xe6
push str.filelist.cpp
call fcn.004f5580
test eax, eax
je 0x4a90e0
int3
xor ecx, ecx
test ecx, ecx
jne 0x4a90c0
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.004f1b86
test eax, eax
je 0x4a9122
cmp dword [ebp - 0x10], 0
je 0x4a9122
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.0050464c
mov ecx, dword [ebp - 0x250]
mov ecx, dword [ecx + 8]
call fcn.004f1b86
test eax, eax
je 0x4a9171
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.004f1b86
test eax, eax
jne 0x4a9160
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.004f1ba4
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 0x4a9509
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x4a917f
jmp 0x4a9509
mov dword [ebp - 0x228], 0
jmp 0x4a919a
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 0x4a91c7
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.005042b1
jmp 0x4a918b
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 0x4a9209
push 0xfe
push str.filelist.cpp
call fcn.004f5580
test eax, eax
je 0x4a9209
int3
xor eax, eax
test eax, eax
jne 0x4a91ec
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.004f1a67
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004f1a67
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], 0
jmp 0x4a927a
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 0x4a94be
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.004a8e9d
test eax, eax
jne 0x4a92c1
jmp 0x4a94be
lea ecx, [ebp - 0x21c]
call fcn.004f1ba4
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x21c]
call fcn.004f1b5a
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.0049e3db
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x240]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x4a9399
mov ecx, dword [ebp - 0x240]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x26
jne 0x4a932e
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 0x4a9364
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 0x4a92f1
mov ecx, dword [ebp - 0x244]
mov word [ecx], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.0049e517
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.0049dcb1
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.0049dff5
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.004f1ba4
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.005047d7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.0049dc20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0049dc20
jmp 0x4a926b
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.00504506
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.0049dc20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0049dc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4