Function at 0x5f43a9bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f4a98e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push esi
push edi
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp - 0x144]
cmp dword [eax + 8], 0
jne 0x5f43aa04
push 0xe6
push str.filelist.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f43aa04
int3
xor ecx, ecx
test ecx, ecx
jne 0x5f43a9e4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x1c
call sym.MFC42D.DLL_Ordinal_3355
test eax, eax
je 0x5f43aa46
cmp dword [ebp - 0x10], 0
je 0x5f43aa46
push 0
mov ecx, dword [ebp - 0x144]
add ecx, 0x1c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x10]
call sym.MFC42D.DLL_Ordinal_2677
mov ecx, dword [ebp - 0x144]
mov ecx, dword [ecx + 8]
call sym.MFC42D.DLL_Ordinal_3355
test eax, eax
je 0x5f43aa95
mov ecx, dword [ebp - 0x144]
add ecx, 0x1c
call sym.MFC42D.DLL_Ordinal_3355
test eax, eax
jne 0x5f43aa84
mov ecx, dword [ebp - 0x144]
add ecx, 0x1c
call sym.MFC42D.DLL_Ordinal_880
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 0x5f43ae34
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x5f43aaa3
jmp 0x5f43ae34
mov dword [ebp - 0x124], 0
jmp 0x5f43aabe
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x124]
cmp eax, dword [edx + 4]
jge 0x5f43aaeb
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
add edx, dword [ebp - 0x124]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call sym.MFC42D.DLL_Ordinal_1808
jmp 0x5f43aaaf
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jge 0x5f43ab2d
push 0xfe
push str.filelist.cpp
call sym.MFC42D.DLL_Ordinal_1041
test eax, eax
je 0x5f43ab2d
int3
xor eax, eax
test eax, eax
jne 0x5f43ab10
mov ecx, dword [ebp - 0x11c]
mov byte [ebp + ecx - 0x114], 0x5c
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov byte [ebp + eax - 0x114], 0
lea ecx, [ebp - 0x118]
call sym.MFC42D.DLL_Ordinal_492
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
call sym.MFC42D.DLL_Ordinal_492
mov byte [ebp - 4], 1
mov dword [ebp - 0x124], 0
jmp 0x5f43ab9a
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [ebp - 0x124]
cmp eax, dword [edx + 4]
jge 0x5f43ade9
push 1
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x124]
push eax
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp - 0x144]
call sym.MFC42D.DLL_Ordinal_2433
test eax, eax
jne 0x5f43abe1
jmp 0x5f43ade9
lea ecx, [ebp - 0x118]
call sym.MFC42D.DLL_Ordinal_880
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x118]
call sym.MFC42D.DLL_Ordinal_2640
shl eax, 1
push eax
lea ecx, [ebp - 0x120]
call sym.MFC42D.DLL_Ordinal_2291
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x134]
movsx eax, byte [edx]
test eax, eax
je 0x5f43acc6
mov ecx, dword [ebp - 0x134]
movsx edx, byte [ecx]
cmp edx, 0x26
jne 0x5f43ac48
mov eax, dword [ebp - 0x138]
mov byte [eax], 0x26
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
mov edx, dword [ebp - 0x134]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [sym.imp.MSVCRTD.dll__mbctype]
xor edx, edx
mov dl, byte [ecx + eax + 1]
and edx, 4
test edx, edx
je 0x5f43ac93
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x134]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
jmp 0x5f43ac11
mov ecx, dword [ebp - 0x138]
mov byte [ecx], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x120]
call sym.MFC42D.DLL_Ordinal_4302
mov edx, dword [ebp - 0x144]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x124]
lea eax, [ecx + eax + 1]
xor edx, edx
mov ecx, 0xa
div ecx
push edx
push 0x5f4b8d54
lea edx, [ebp - 0x130]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x13c]
call sym.MFC42D.DLL_Ordinal_487
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x140]
push ecx
call sym.MFC42D.DLL_Ordinal_899
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x154]
call sym.MFC42D.DLL_Ordinal_880
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x158], ecx
mov edx, dword [ebp - 0x158]
push edx
push 0x400
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x15c], ecx
mov edx, dword [ebp - 0x15c]
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 sym.MFC42D.DLL_Ordinal_3300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call sym.MFC42D.DLL_Ordinal_684
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call sym.MFC42D.DLL_Ordinal_684
jmp 0x5f43ab8b
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 sym.MFC42D.DLL_Ordinal_2673
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 - 0x120]
call sym.MFC42D.DLL_Ordinal_684
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call sym.MFC42D.DLL_Ordinal_684
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4