Function at 0x401899
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
call fcn.00402cbd
push eax
lea ecx, [ebp - 8]
call fcn.00402161
call fcn.00402cbd
push eax
lea ecx, [ebp - 4]
call fcn.00402161
lea edx, [ebp - 4]
xor ecx, ecx
call fcn.0045b716
mov esi, dword [ebp - 4]
test al, al
je 0x401ac9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ac9
xor eax, eax
lea ecx, [ebp - 0xc]
push 0x51ca10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00401f21
lea eax, [ebp - 0x34]
push eax
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.0045b81b
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov bl, al
add ecx, 0xfffffff0
call fcn.004033d1
test bl, bl
jne 0x401959
mov esi, dword [ebp - 8]
lea ecx, [esi - 0x10]
call fcn.004021de
add eax, 0x10
mov dword [edi], eax
lea ecx, [ebp - 0x34]
call fcn.00402497
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.004033d1
lea ecx, [esi - 0x10]
call fcn.004033d1
mov eax, edi
jmp 0x401aee
mov esi, str.TRANSLATIONS
mov ecx, esi
call fcn.0040208a
push eax
push esi
lea ecx, [ebp - 8]
call fcn.00402231
xor eax, eax
mov esi, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x30], eax
jbe 0x401aac
push 0xb4
call fcn.004b3df0
pop ecx
mov ecx, eax
call fcn.0045114b
push esi
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00402478
push eax
mov ecx, ebx
call fcn.00451422
test al, al
je 0x401a84
mov ecx, dword [ebx + 0x1c]
sub ecx, 0x10
call fcn.004021de
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
jne 0x4019f7
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00451cd2
push eax
lea ecx, [ebp - 0xc]
call fcn.00401ec9
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.004033d1
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebx + 0x14]
sub ecx, 0x10
call fcn.004021de
mov edx, 0x51c4f0
lea ecx, [ebp - 0xc]
lea edi, [eax + 0x10]
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], edi
push eax
call fcn.0043b439
pop ecx
lea ecx, [edi - 0x10]
call fcn.004033d1
push 0x51c4f4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x24]
call fcn.0043b4a9
pop ecx
call fcn.00402cbd
push eax
lea ecx, [ebp - 0x10]
call fcn.00402161
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push edi
push esi
push 0x51c4f8
push eax
call fcn.004023f1
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 8]
add esp, 0x10
push dword [esi - 0xc]
push esi
call fcn.00402366
lea ecx, [esi - 0x10]
call fcn.004033d1
lea ecx, [edi - 0x10]
call fcn.004033d1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004033d1
mov esi, dword [ebp - 0x18]
test ebx, ebx
je 0x401a9c
mov ecx, ebx
call fcn.00451264
push 0xb4
push ebx
call fcn.004b3de2
pop ecx
pop ecx
inc esi
mov dword [ebp - 0x18], esi
cmp esi, dword [ebp - 0x30]
jb 0x40198b
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
lea ecx, [esi - 0x10]
call fcn.004021de
add eax, 0x10
lea ecx, [ebp - 0x44]
mov dword [edi], eax
call fcn.00402497
jmp 0x401937
mov edi, dword [ebp - 8]
lea ecx, [edi - 0x10]
call fcn.004021de
mov ebx, dword [ebp - 0x1c]
lea ecx, [esi - 0x10]
add eax, 0x10
mov dword [ebx], eax
call fcn.004033d1
lea ecx, [edi - 0x10]
call fcn.004033d1
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret