Function at 0x4019d0
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
sub esp, 0x270
mov eax, dword [0x457450]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x27c]
push esi
push edi
xor ebx, ebx
push ebp
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a83
test al, 0x10
je 0x401bfa
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401a16
sub eax, edx
sar eax, 1
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416b27
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
je 0x401a83
push ebp
push esi
push edi
call fcn.00416d3f
add esp, 0xc
push 0x429da8
push esi
push edi
call fcn.00416dae
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401a8c
push edi
call fcn.00416b1c
add esp, 4
xor eax, eax
xor edx, edx
jmp 0x401c3e
mov ecx, 0x429db0
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401abb
test dx, dx
je 0x401ab7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401abb
add eax, 4
add ecx, 4
test dx, dx
jne 0x401a95
xor eax, eax
jmp 0x401ac0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401bba
mov ecx, 0x429db4
lea eax, [esp + 0x54]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401af7
test dx, dx
je 0x401af3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401af7
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ad1
xor eax, eax
jmp 0x401afc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401bba
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b10
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x54]
lea esi, [eax + 2]
jmp 0x401b30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b30
sub eax, esi
sar eax, 1
lea edi, [eax + edx + 2]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416b27
mov esi, eax
add esp, 4
test esi, esi
je 0x401be0
push ebp
push edi
push esi
call fcn.00416d3f
add esp, 0xc
push 0x429dbc
push edi
push esi
call fcn.00416dae
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push edi
push esi
call fcn.00416dae
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push esi
call fcn.004019d0
add dword [esp + 0x10], eax
push esi
adc dword [esp + 0x18], edx
call fcn.00416b1c
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x1c]
jmp 0x401bc6
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401a8c
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.00416b1c
add esp, 4
jmp 0x401c36
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x1c]
push eax
call fcn.00416b1c
add esp, 4
xor eax, eax
xor edx, edx
jmp 0x401c3e
push ebx
push reloc.KERNEL32.dll_LCMapStringW
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416b0d
add esp, 0x270
ret 4