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

Disassembly:
push ebp
lea ebp, [esp - 0x454]
sub esp, 0x454
push 0xffffffffffffffff
push 0x46612d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x484540]
xor eax, ebp
mov dword [ebp + 0x450], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x5c], vtable.CMenu.0
mov dword [ebp - 0x58], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], vtable.CMenu.0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4230bf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4230c9
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 3
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4230d3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x64], eax
push 0
mov byte [ebp - 4], 4
call fcn.00450b45
push eax
call fcn.0045043a
mov eax, dword [esi]
add esp, 8
mov ecx, esi
call dword [eax + 0x6c]
test eax, eax
je 0x42290b
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0043b57f
push 3
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0043b627
test eax, eax
je 0x42292c
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b57f
push dword [esi + 0x16c]
lea eax, [ebp - 0x4c]
push str._s.
push eax
call fcn.00408490
lea ecx, [esi + 0x184]
lea eax, [esi + 0x180]
mov dword [ebp - 0x54], ecx
push ecx
push eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004171e0
add esp, 0x18
push dword [eax]
push 0x8100
push 0
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422996
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x180]
mov edi, 1
lea ecx, [esi + 0x208]
mov dword [ebp - 0x14], edi
push eax
push dword [ecx + 8]
call fcn.0043f409
mov esi, dword [ebp - 0x4c]
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x422b9e
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x422b9b
cmp edi, 0xff
jg 0x422b9b
test byte [ebp], 0x10
je 0x422b86
call fcn.0042f5de
test eax, eax
je 0x4230bf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402a30
test al, al
jne 0x422a4c
lea ecx, [ebp + 0x2c]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422a30
sub ecx, edx
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c10
mov byte [ebp - 4], 6
push ecx
mov dword [ebp - 0x50], esp
mov edi, dword [ebp - 0x1c]
add edi, 0xfffffff0
mov dword [ebp - 0x38], edi
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
mov dword [ebp - 0x20], eax
jl 0x422a7b
cmp ecx, dword [edi]
jne 0x422a7b
lock inc dword [eax]
jmp 0x422aad
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x4230dd
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
lea ecx, [eax + 0x10]
mov edx, dword [eax + 4]
lea eax, [edi + 0x10]
inc edx
push edx
push ecx
push edx
push eax
call fcn.00402de0
add esp, 0x10
mov ecx, dword [ebp - 0x50]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1a4]
test eax, eax
je 0x422b65
mov eax, dword [ebp - 0x14]
lea edi, [eax + 0x8100]
inc eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x2c]
push eax
push edi
push 0
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x2c]
push eax
push dword [ecx + 0x210]
lea ecx, [ecx + 0x208]
call fcn.0043f45a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x170]
lea ecx, [ebp + 0x2c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422b36
test dx, dx
je 0x422b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x422b10
xor eax, eax
jmp 0x422b3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422b49
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
push dword [eax + 0x174]
lea eax, [ebp + 0x2c]
push eax
call fcn.0044b0b5
add esp, 8
test eax, eax
je 0x422b65
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0x20]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x422b83
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
lea eax, [ebp]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4229e0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
test eax, eax
je 0x4230bf
mov edi, dword [ebp - 0x10]
add edi, 0x170
mov ecx, dword [edi]
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x422be6
test dx, dx
je 0x422be2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x422be6
add ecx, 4
add eax, 4
test dx, dx
jne 0x422bc0
xor eax, eax
jmp 0x422beb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422ce7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.00424bb0
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.004027d0
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
lea eax, [ebp - 0x50]
push 0x472d34
push eax
call fcn.00417040
push 0x472d3c
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 8
push eax
call fcn.00417110
add esp, 0x18
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x54]
mov ecx, edi
push eax
call fcn.004027d0
mov byte [ebp - 4], 8
or eax, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422c9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push dword [ebp - 0x60]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x18], 0x8100
push eax
call fcn.004171e0
add esp, 0xc
push dword [eax]
push 0x8100
push 0
push 0x8100
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov edx, dword [ebp - 0x54]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422d03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x422d03
cmp dword [ebp - 0x2c], 0
jne 0x422d03
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, 0x174
push eax
call fcn.004027d0
mov dword [ebp - 0x48], vtable.CMenu.0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], vtable.CMenu.0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xb
mov eax, dword [eax + 0x210]
add eax, 0x8100
push eax
push 0x8100
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea ecx, [ebp - 0x28]
call fcn.0043b5fd
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push 5
push dword [ebp - 0x58]
call edi
push eax
call fcn.0043b627
test eax, eax
je 0x422d67
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b57f
push 0
push dword [ebp - 0x24]
call edi
push eax
call fcn.0043b627
test eax, eax
je 0x422d84
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x48]
call fcn.0043b57f
mov edi, dword [sym.imp.USER32.dll_RemoveMenu]
push 0x400
push 0
push dword [ebp - 0x44]
call edi
push 1
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0043b627
test eax, eax
je 0x422db7
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043b57f
push 0x400
push 0
push dword [ebp - 0x3c]
call edi
mov eax, dword [ebp - 0x10]
push dword [eax + 0x188]
lea eax, [ebp - 0x64]
push str._s.lang
push eax
call fcn.00408490
mov edi, dword [ebp - 0x64]
lea eax, [ebp]
add esp, 0xc
mov dword [ebp - 0x30], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, 0xffffffff
je 0x422f7e
xor ecx, ecx
jmp 0x422e10
cmp dword [ebp], 0x10
je 0x422f58
lea eax, [ecx + 0x8200]
inc ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], ecx
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4230bf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 0xc
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x188]
lea eax, [ebp - 0x14]
push str._s_s
push eax
call fcn.00408490
add esp, 0x10
lea eax, [ebp + 0x250]
push dword [ebp - 0x14]
push 0x100
push eax
push 0x472bd0
push str.LANGUAGE
push 0x473a48
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x2c]
push 0x2e
push eax
call fcn.0044b011
add esp, 8
test eax, eax
je 0x422e9e
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x14]
push str._s____s_
push eax
call fcn.00408490
mov esi, dword [ebp - 0x14]
add esp, 0x10
mov eax, dword [ebp + 0x2c]
add eax, 0xffffffbf
push esi
push dword [ebp - 0x1c]
push 0
cmp ax, 0xd
ja 0x422ed4
push dword [ebp - 0x44]
jmp 0x422ed7
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x2c]
add ecx, 0x21c
push eax
push dword [ecx + 8]
call fcn.0043f45a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x18c]
lea ecx, [ebp + 0x2c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422f26
test dx, dx
je 0x422f22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422f26
add eax, 4
add ecx, 4
test dx, dx
jne 0x422f00
xor eax, eax
jmp 0x422f2b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422f3c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422f58
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x422f78
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xff
jle 0x422e10
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
mov eax, dword [eax + 0x224]
add eax, 0x8200
push eax
push 0x8200
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x18]
mov eax, dword [ecx + 0x224]
add eax, 0x8200
push eax
push 0x8200
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
lea ecx, [ebp - 0x40]
call fcn.0043b5fd
lea ecx, [ebp - 0x48]
call fcn.0043b5fd
lea ecx, [ebp - 0x28]
call fcn.0043b5fd
lea ecx, [ebp - 0x5c]
call fcn.0043b5fd
cmp dword [ebp - 0x68], 0
jne 0x422ffd
push 0
push 0
push str.FATAL_ERROR:_Missing_Language_Files__
call fcn.004374ef
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], vtable.CMenu.0
call fcn.0043b5e7
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], vtable.CMenu.0
call fcn.0043b5e7
mov byte [ebp - 4], 3
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42303f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x42305a
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x423073
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], vtable.CMenu.0
call fcn.0043b5e7
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], vtable.CMenu.0
call fcn.0043b5e7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.0044998e
lea esp, [ebp + 0x454]
pop ebp
ret
push 0x80004005
call fcn.00403110
push 0x80004005
call fcn.00403110
push 0x80004005
call fcn.00403110
call fcn.00402ef0
int3