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

Disassembly:
push 0xffffffffffffffff
push 0x458056
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x471920]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
mov dword [esp + 0x1c], ebp
call fcn.0041c08e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bae2
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x18]
mov dword [esp + 0x288], ebx
call fcn.00401420
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bb2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xf
push 0x463cb0
lea ecx, [esp + 0x1c]
call fcn.00407380
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40bcd2
push 0x5c
push edi
call fcn.0043f400
add esp, 8
cmp eax, ebx
jne 0x40bb6b
or eax, 0xffffffff
jmp 0x40bb6f
sub eax, edi
sar eax, 1
add eax, 1
push eax
push ebx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
call fcn.0040b2e0
mov byte [esp + 0x284], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40bbe0
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x40bbd2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40bbd2
push eax
call fcn.00402ac0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40bbc5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x1c]
jmp 0x40bbe0
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004029b0
mov byte [esp + 0x284], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x50]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bc10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00407380
mov edi, dword [esp + 0x14]
push edi
push ebx
push str.Language
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
movzx esi, ax
cmp si, bx
je 0x40bcaf
mov eax, dword [0x472dc4]
cmp eax, 0x13ba
jne 0x40bc68
push ebx
push ebx
push 0x800
push ebp
call dword [sym.imp.USER32.dll_AppendMenuW]
jmp 0x40bc6f
cmp eax, 0x13ec
jae 0x40bcc7
add dword [0x472dc4], 1
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x472dc4]
mov word [esp + eax*2 + 0x48], bx
lea eax, [esp + 0x50]
push eax
push ecx
push ebx
push ebp
call dword [sym.imp.USER32.dll_AppendMenuW]
cmp si, word [0x4767a4]
jne 0x40bcaf
mov edx, dword [0x472dc4]
mov dword [0x472dc0], edx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40bb57
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x472dc0]
mov ecx, dword [0x472dc4]
push ebx
push eax
push ecx
push 0x13ba
push ebp
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov esi, dword [0x472dc0]
lea eax, [edi - 0x10]
mov dword [esp + 0x284], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bd19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.0043e923
add esp, 0x274
ret