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

Disassembly:
push ebp
lea ebp, [esp - 0x454]
sub esp, 0x454
push 0xffffffffffffffff
push 0x466095
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 ebx, ecx
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4227e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4227eb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
mov eax, dword [ebx + 0x170]
cmp dword [eax - 0xc], 0
jne 0x42240e
mov eax, dword [ebx + 0x174]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov edx, eax
lea eax, [esi + 0xc]
jl 0x422249
cmp edx, dword [esi]
jne 0x422249
lock inc dword [eax]
jmp 0x42227f
mov eax, dword [edx]
lea ecx, [esi + 4]
push 2
push dword [ecx]
mov dword [ebp - 0x1c], ecx
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x4227f5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp - 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00402de0
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x10], esi
lea eax, [ebx + 0x204]
mov byte [ebp - 4], 2
push eax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004171e0
push 0x472bd4
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00417110
lea ecx, [ebx + 0x198]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004171e0
push str._300.png
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
call fcn.00417110
push 0x478294
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.004547f9
add esp, 0x3c
test eax, eax
jne 0x42230b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42230b
push eax
call fcn.00454c19
add esp, 4
mov dword [ebp - 0x18], 1
jmp 0x422312
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42232d
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 - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42234c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42236b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42238a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x4223a2
lea eax, [ebx + 0x204]
push eax
lea ecx, [ebp - 0x10]
call fcn.004027d0
mov esi, dword [ebp - 0x10]
push dword [ebx + 0xd4]
lea eax, [ebp + 0x250]
push 0x100
push eax
push esi
push dword [ebx + 0x200]
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp + 0x250]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4223d0
sub ecx, edx
lea eax, [ebp + 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x170]
call fcn.00402c10
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42240e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xd4]
lea eax, [ebp + 0x250]
push 0x100
push eax
push 0x472bd0
push 0x473a48
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x250]
push eax
push dword [ebx + 0x188]
lea eax, [ebp - 0x20]
push str._s_s.lang
push eax
call fcn.00408490
push str.English
push dword [ebx + 0x188]
lea eax, [ebx + 0x194]
push str._s_s.lang
push eax
call fcn.00408490
add esp, 0x20
lea eax, [ebp + 0x250]
mov ecx, 0x472bd0
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4224a6
test dx, dx
je 0x4224a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4224a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x422480
xor eax, eax
jmp 0x4224ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x42252d
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 0x478294
push esi
push eax
call fcn.004547f9
add esp, 0xc
test eax, eax
jne 0x42252d
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42252d
push eax
call fcn.00454c19
lea ecx, [ebp + 0x250]
add esp, 4
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4224e4
sub ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x18c]
call fcn.00402c10
lea eax, [ebp + 0x250]
push eax
push dword [ebx + 0x188]
lea eax, [ebx + 0x190]
push str._s_s.lang
push eax
call fcn.00408490
add esp, 0x10
jmp 0x42277d
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4227fa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call esi
push eax
lea eax, [ebp - 0x18]
push str.0x_04X
push eax
call fcn.00408490
add esp, 0xc
call esi
push dword [ebx + 0x188]
and eax, 0x3ff
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push str._s.lang
push eax
call fcn.00408490
mov esi, dword [ebp - 0x20]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x422707
mov edi, dword [ebp - 0x18]
xor eax, eax
cmp dword [ebp], 0x10
je 0x4226df
inc eax
mov dword [ebp - 0x2c], eax
call fcn.0042f5de
mov ecx, eax
test ecx, ecx
je 0x4227e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 7
push eax
push dword [ebx + 0x188]
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00408490
mov esi, dword [ebp - 0x10]
lea eax, [ebp + 0x250]
add esp, 0x10
push esi
push 0x100
push eax
push 0x472bd0
push str.LOCALE_ID
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 0x422628
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x250]
push edi
push eax
call fcn.0044b0b5
add esp, 8
test eax, eax
je 0x422683
lea ecx, [ebp + 0x2c]
lea eax, [ecx + 2]
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422645
sub ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x18c]
call fcn.00402c10
lea eax, [ebp + 0x2c]
push eax
push dword [ebx + 0x188]
lea eax, [ebx + 0x190]
push str._s_s.lang
push eax
call fcn.00408490
add esp, 0x10
push 0x10
lea eax, [ebp + 0x250]
push 0
push eax
call fcn.00450aff
and eax, 0x3ff
add esp, 0xc
cmp word [ebp - 0x28], ax
jne 0x4226c3
lea ecx, [ebp + 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4226a7
sub ecx, edx
lea eax, [ebp + 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.00402c10
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4226df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4226fe
mov eax, dword [ebp - 0x2c]
cmp eax, 0xff
jle 0x4225a5
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebx + 0x18c]
lea ecx, [ebx + 0x18c]
cmp dword [eax - 0xc], 0
jne 0x42275e
cmp dword [edi - 0xc], 0
jne 0x42273a
push 7
push str.English
call fcn.00402c10
push dword [ebx + 0x18c]
jmp 0x422744
lea eax, [ebp - 0x24]
push eax
call fcn.004027d0
push edi
push dword [ebx + 0x188]
lea eax, [ebx + 0x190]
push str._s_s.lang
push eax
call fcn.00408490
add esp, 0x10
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42277d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, ebx
call fcn.004235e0
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4227a2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4227be
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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
call fcn.00402ef0
push 0x80004005
call fcn.00403110
int3