Function at 0x41779c
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcac
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x440]
xor esi, esi
push edi
push esi
push eax
mov ebx, esi
call fcn.00419ee0
push edi
lea eax, [ebp - 0x850]
push esi
push eax
call fcn.00419ee0
push edi
lea eax, [ebp - 0x648]
push esi
push eax
call fcn.00419ee0
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xa58]
mov edi, 0x208
push edi
push esi
push eax
call fcn.00419ee0
push edi
lea eax, [ebp - 0x238]
push esi
push eax
call fcn.00419ee0
add esp, 0x3c
lea eax, [ebp - 0x440]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push edi
lea eax, [ebp - 0x648]
push eax
push edi
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004258bb
push esi
push esi
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x440]
push edi
push eax
call fcn.00425a8c
push 0x410330
lea eax, [ebp - 0x440]
push edi
push eax
call fcn.0042a61f
add esp, 0x48
lea eax, [ebp - 0xca8]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417b17
test byte [ebp - 0xca8], 0x10
je 0x4179d0
mov ecx, 0x410338
lea eax, [ebp - 0xc7c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4178d6
test dx, dx
je 0x4178d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4178d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4178b0
mov eax, esi
jmp 0x4178db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4179d0
mov ecx, 0x40801c
lea eax, [ebp - 0xc7c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417914
test dx, dx
je 0x417910
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417914
add eax, 4
add ecx, 4
test dx, dx
jne 0x4178ee
mov eax, esi
jmp 0x417919
sbb eax, eax
or eax, 1
test eax, eax
je 0x4179d0
lea eax, [ebp - 0xc7c]
push eax
call fcn.004281cf
pop ecx
test eax, eax
je 0x4179d0
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.00428a4d
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0042a61f
push 0x41034c
lea eax, [ebp - 0x238]
push 0x104
push eax
call fcn.0042a61f
push 0x407f88
push 0x407f6c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0xa58]
push 0x104
push eax
call fcn.00425a8c
add esp, 0x3c
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4179d0
lea eax, [ebp - 0xc7c]
inc ebx
push eax
lea eax, [ebp - 0x2c]
push 0xa
push eax
call fcn.00428a4d
add esp, 0xc
lea eax, [ebp - 0xca8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417898
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, 1
jle 0x417aa1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
lea edi, [ebp - 0x18]
xor eax, eax
stosd dword es:[edi], eax
push 0xa
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.0042ecac
lea eax, [ebp - 0x648]
mov ebx, 0x104
push eax
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00428a4d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042a61f
push 0x41034c
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042a61f
push 0x407f88
push 0x407f6c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0xa58]
push ebx
push eax
call fcn.00425a8c
add esp, 0x4c
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417aa6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push 0xa
push eax
call fcn.00428a4d
add esp, 0xc
jmp 0x417aa6
mov ebx, 0x104
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00428a4d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042a61f
push 0x41034c
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.0042a61f
push 0x407f88
push 0x407f6c
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x440]
push ebx
push eax
call fcn.00425a8c
add esp, 0x3c
lea eax, [ebp - 0x440]
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418af8
leave
ret