Function at 0x560020
Capabilities:
Enumerate files on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d5e
mov eax, dword fs:[0]
push eax
sub esp, 0x6ec
mov eax, dword [0x5cf004]
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 - 0x6b4], ecx
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
mov dword [ebp - 0x6e4], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
mov dword [ebp - 0x6c8], 0
mov byte [ebp - 4], 1
xor edi, edi
mov dword [ebp - 0x6c4], 0
mov dword [ebp - 0x6f8], 0
mov dword [ebp - 0x6bc], 0
call fcn.00407579
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5600c3
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5600d8
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x5600dc
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x6d0], eax
mov byte [ebp - 4], 2
call fcn.00407579
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x560105
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x56011a
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x56011e
mov ecx, edx
call esi
lea ebx, [eax + 0x10]
mov dword [ebp - 0x6ec], ebx
mov byte [ebp - 4], 3
call fcn.00407579
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x560147
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x56015c
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x560160
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x6f0], eax
mov esi, dword [ebp - 0x6b4]
mov ecx, esi
mov byte [ebp - 4], 4
mov eax, dword [esi]
call dword [eax + 0x6c]
test eax, eax
je 0x560181
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x6e8]
call fcn.004156be
push dword [esi + 0x3bc]
push dword [ebp - 0x6e4]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00415c67
test eax, eax
je 0x5601ac
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x6cc]
call fcn.004156be
push dword [esi + 0x3b4]
lea eax, [ebp - 0x6d0]
push str._s.
push eax
call fcn.00402f90
mov esi, dword [ebp - 0x6d0]
lea eax, [ebp - 0x460]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6b8], eax
cmp eax, 0xffffffff
je 0x56034b
lea ecx, [ebp - 0x460]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x560345
xor esi, esi
nop dword [eax]
cmp esi, 0xff
jg 0x56033f
test byte [ebp - 0x460], 0x10
je 0x560324
push 0x5ab980
lea eax, [ebp - 0x434]
push eax
mov eax, dword [ebp - 0x6b4]
push dword [eax + 0x3b4]
lea eax, [ebp - 0x6ec]
push 0x5ab994
push eax
call fcn.00402f90
mov ebx, dword [ebp - 0x6ec]
lea eax, [ebp - 0x6b0]
add esp, 0x14
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x560324
lea eax, [esi + 0x9600]
inc esi
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x6c0], eax
push ecx
push eax
push 0
push dword [ebp - 0x6c8]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [ebp - 0x6b4]
lea eax, [ebp - 0x434]
add ecx, 0x3c4
push eax
push dword [ecx + 8]
call fcn.00417a3c
mov ecx, dword [ebp - 0x6b4]
mov eax, dword [ecx + 0x3ec]
lea ecx, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x5602e8
test dx, dx
je 0x5602e4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5602e8
add eax, 4
add ecx, 4
test dx, dx
jne 0x5602c2
xor eax, eax
jmp 0x5602ed
sbb eax, eax
or eax, 1
test eax, eax
jne 0x560307
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x6bc], eax
mov dword [ebp - 0x6c4], 1
lea eax, [ebp - 0x434]
push 0x5ab9a8
push eax
call fcn.00534314
add esp, 8
test eax, eax
cmovne edi, dword [ebp - 0x6c0]
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x6b8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x560210
mov esi, dword [ebp - 0x6d0]
mov eax, dword [ebp - 0x6b8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x6c4], 0
jne 0x56037b
mov dword [ebp - 0x6bc], edi
mov edi, dword [ebp - 0x6b4]
push 7
push str.default
lea ecx, [edi + 0x3ec]
call fcn.004025d0
jmp 0x560381
mov edi, dword [ebp - 0x6b4]
mov eax, dword [edi + 0x3cc]
push 0
push dword [ebp - 0x6bc]
add eax, 0x9600
push eax
push 0x9600
push dword [ebp - 0x6c8]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea ecx, [ebp - 0x6cc]
call fcn.0041574e
push dword [edi + 0x3c0]
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push dword [ebp - 0x6e4]
call edi
push eax
call fcn.00415c67
test eax, eax
je 0x5603d2
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x6cc]
call fcn.004156be
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
mov dword [ebp - 0x6dc], 0
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
mov dword [ebp - 0x6d4], 0
push 0
mov byte [ebp - 4], 6
push dword [ebp - 0x6c8]
call edi
push eax
call fcn.00415c67
test eax, eax
je 0x560421
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x6e0]
call fcn.004156be
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push dword [ebp - 0x6dc]
call edi
push 1
push dword [ebp - 0x6c8]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.00415c67
test eax, eax
je 0x56045d
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x6d8]
call fcn.004156be
push 0x400
push 0
push dword [ebp - 0x6d4]
call edi
mov eax, dword [ebp - 0x6b4]
push dword [eax + 0x3b8]
lea eax, [ebp - 0x6f0]
push str._s.lang
push eax
call fcn.00402f90
mov edi, dword [ebp - 0x6f0]
lea eax, [ebp - 0x460]
add esp, 0xc
mov dword [ebp - 0x6c4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6f4], eax
cmp eax, 0xffffffff
je 0x5606c9
xor ecx, ecx
nop word [eax + eax]
cmp dword [ebp - 0x460], 0x10
je 0x56069a
lea eax, [ecx + 0x9800]
inc ecx
mov dword [ebp - 0x6c0], eax
mov dword [ebp - 0x6c4], ecx
call fcn.00407579
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5600b9
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x56051a
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x56051e
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x6b8], eax
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 7
push eax
mov eax, dword [ebp - 0x6b4]
push dword [eax + 0x3b8]
lea eax, [ebp - 0x6b8]
push str._s_s
push eax
call fcn.00402f90
add esp, 0x10
lea eax, [ebp - 0x210]
push dword [ebp - 0x6b8]
push 0x100
push eax
push 0x5ab9e8
push str.LANGUAGE
push 0x5aba00
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x434]
push 0x2e
push eax
call fcn.00534597
add esp, 8
test eax, eax
je 0x560593
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x6b8]
push str._s____s_
push eax
call fcn.00402f90
mov esi, dword [ebp - 0x6b8]
add esp, 0x10
mov eax, dword [ebp - 0x434]
add eax, 0xffffffbf
push esi
push dword [ebp - 0x6c0]
push 0
cmp ax, 0xd
ja 0x5605db
push dword [ebp - 0x6dc]
jmp 0x5605e1
push dword [ebp - 0x6d4]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [ebp - 0x6b4]
lea eax, [ebp - 0x434]
add ecx, 0x3d8
push eax
push dword [ecx + 8]
call fcn.00417a3c
mov ecx, dword [ebp - 0x6b4]
mov eax, dword [ecx + 0x3f0]
lea ecx, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x56063a
test dx, dx
je 0x560636
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x56063a
add eax, 4
add ecx, 4
test dx, dx
jne 0x560614
xor eax, eax
jmp 0x56063f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x560659
mov eax, dword [ebp - 0x6c0]
mov dword [ebp - 0x6bc], eax
mov dword [ebp - 0x6f8], 1
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x56069a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x560698
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x560698
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x56069a
call edx
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x6f4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5606c3
mov ecx, dword [ebp - 0x6c4]
cmp ecx, 0xff
jle 0x5604d0
mov esi, dword [ebp - 0x6d0]
push dword [ebp - 0x6f4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x6b4]
push 0
push dword [ebp - 0x6bc]
mov eax, dword [eax + 0x3e0]
add eax, 0x9800
push eax
push 0x9800
push dword [ebp - 0x6dc]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [ebp - 0x6b4]
push 0
push dword [ebp - 0x6bc]
mov eax, dword [ecx + 0x3e0]
add eax, 0x9800
push eax
push 0x9800
push dword [ebp - 0x6d4]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea ecx, [ebp - 0x6d8]
call fcn.0041574e
lea ecx, [ebp - 0x6e0]
call fcn.0041574e
lea ecx, [ebp - 0x6cc]
call fcn.0041574e
lea ecx, [ebp - 0x6e8]
call fcn.0041574e
cmp dword [ebp - 0x6f8], 0
jne 0x56076e
push 0
push 0
push str.Fatal_Error._Missing_Language_Files__
call fcn.00410f79
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x6d8]
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
call fcn.00415727
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x6e0]
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
call fcn.00415727
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x5607e1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5607df
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x5607df
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5607e1
call edx
or edi, 0xffffffff
mov byte [ebp - 4], 2
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x560826
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x560824
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x560824
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call ebx
jmp 0x56082c
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x560866
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x560864
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x560864
push 0
push dword [ecx + 4]
call ebx
jmp 0x560866
call edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x6cc]
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
call fcn.00415727
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x6e8]
mov dword [ebp - method.CMenu.virtual_0], vtable.CMenu.0
call fcn.00415727
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.00531d62
mov esp, ebp
pop ebp
ret