Function at 0x422940
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44773d
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x45c070]
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
lea eax, [ebp - 0x268]
push 0x460238
push eax
mov ebx, str.Languages_
mov edi, ecx
mov dword [ebp - 0x264], 0
call fcn.00406e70
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x268]
mov esi, dword [edi + 0x2c]
lea ebx, [edi + 0x2c]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4229f7
cmp dword [esi + 0xc], 0
jl 0x4229ed
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4229ed
call fcn.00403230
mov dword [ebp - 0x26c], eax
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4229e0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x26c]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x4229f7
push ecx
push ebx
mov ebx, dword [ecx - 0xc]
call fcn.004036c0
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x270]
push eax
mov ebx, 0x452028
mov dword [edi + 0x28], 0
call fcn.00406e70
mov eax, dword [eax]
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
mov dword [ebp - 0x26c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422a53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x422bac
lea ecx, [ebp - 0x260]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x422b92
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x422a80
test byte [ebp - 0x260], 0x10
je 0x422ae4
cmp word [ebp - 0x234], 0x2e
je 0x422ae4
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x274]
push eax
lea ebx, [ebp - 0x234]
call fcn.00406e70
mov ecx, 1
mov byte [ebp - 4], cl
or dword [ebp - 0x264], ecx
push eax
lea ecx, [ebp - 0x278]
push ecx
mov ebx, str.AIRes.dll
call fcn.00406e70
mov eax, dword [eax]
or dword [ebp - 0x264], 2
add esp, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x422ae4
mov bl, 1
jmp 0x422ae6
xor bl, bl
test byte [ebp - 0x264], 2
je 0x422b18
mov eax, dword [ebp - 0x278]
and dword [ebp - 0x264], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422b18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
test byte [ebp - 0x264], 1
je 0x422b51
mov eax, dword [ebp - 0x274]
and dword [ebp - 0x264], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x422b70
mov edx, dword [edi + 0x24]
inc dword [edi + 0x28]
lea ecx, [ebp - 0x234]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x422a80
mov esi, dword [ebp - 0x26c]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [edi + 0x24]
push 0
push 0
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [edi + 0x28]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422bd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.0042decf
mov esp, ebp
pop ebp
ret