Function at 0x4b53c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561427
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 0x4b5410
push 0xe6
push str.filelist.cpp
call fcn.004fed10
test eax, eax
je 0x4b5410
int3
xor ecx, ecx
test ecx, ecx
jne 0x4b53f0
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.004fb336
test eax, eax
je 0x4b5452
cmp dword [ebp - 0x10], 0
je 0x4b5452
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.0050defc
mov ecx, dword [ebp - 0x250]
mov ecx, dword [ecx + 8]
call fcn.004fb336
test eax, eax
je 0x4b54a1
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.004fb336
test eax, eax
jne 0x4b5490
mov ecx, dword [ebp - 0x250]
add ecx, 0x1c
call fcn.004fb354
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 0x4b5839
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x4b54af
jmp 0x4b5839
mov dword [ebp - 0x228], 0
jmp 0x4b54ca
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 0x4b54f7
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.0050db61
jmp 0x4b54bb
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 0x4b5539
push 0xfe
push str.filelist.cpp
call fcn.004fed10
test eax, eax
je 0x4b5539
int3
xor eax, eax
test eax, eax
jne 0x4b551c
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.004fb217
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
call fcn.004fb217
mov byte [ebp - 4], 1
mov dword [ebp - 0x228], 0
jmp 0x4b55aa
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 0x4b57ee
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.004b51cd
test eax, eax
jne 0x4b55f1
jmp 0x4b57ee
lea ecx, [ebp - 0x21c]
call fcn.004fb354
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x21c]
call fcn.004fb30a
shl eax, 1
push eax
lea ecx, [ebp - 0x224]
call fcn.004af0db
mov dword [ebp - 0x244], eax
mov edx, dword [ebp - 0x240]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x4b56c9
mov ecx, dword [ebp - 0x240]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x26
jne 0x4b565e
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 0x4b5694
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 0x4b5621
mov ecx, dword [ebp - 0x244]
mov word [ecx], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
call fcn.004af217
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 0x61aff0
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.004ae9b1
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.004aecf5
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.004fb354
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.0050e087
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004ae920
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.004ae920
jmp 0x4b559b
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.0050ddb6
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.004ae920
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004ae920
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4