Function at 0x409440
Capabilities:
Check if file exists
Get file attributes
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4bc50e
mov eax, dword fs:[0]
push eax
sub esp, 0xca8
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0xca0], eax
push ebx
push esi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0xcb4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xcbc], ebx
lea eax, [esp + 0xcd0]
cmp byte [esp + 0xde0], bl
jne 0x409499
mov eax, dword [esp + 0xccc]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409766
shr eax, 4
not al
and al, 1
je 0x409766
cmp edi, ebx
je 0x409766
push 0x3ff
lea eax, [esp + 0xb1]
push ebx
push eax
mov byte [esp + 0xb8], bl
call fcn.0049ca10
xor eax, eax
push 0x7fe
lea edx, [esp + 0x4be]
xor ecx, ecx
push ebx
push edx
mov byte [esp + 0xa4], bl
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
mov dword [esp + 0xb1], eax
mov dword [esp + 0xb5], eax
mov dword [esp + 0xb9], eax
mov dword [esp + 0xbd], eax
mov word [esp + 0xc1], ax
mov byte [esp + 0xc3], al
mov word [esp + 0x4c4], cx
call fcn.0049ca10
add esp, 0x18
mov byte [esp + 0x14], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x1c], vtable.t_fileBufRead.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0xcc4]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0xcc4], 2
call fcn.0044e480
test al, al
jne 0x4095f9
lea ecx, [esp + 0x10]
call fcn.00447770
lea ecx, [esp + 0x1c]
call fcn.0044e440
lea ecx, [esp + 0x10]
call fcn.004476c0
mov dword [esp + 0xcc4], 0x4e3520
cmp byte [esp + 0xde0], bl
jne 0x409795
mov eax, dword [esp + 0xccc]
lea edx, [esp + 0xcd0]
cmp eax, edx
jmp 0x40978a
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x28]
je 0x40964f
cmp esi, 0x400
jbe 0x409610
mov esi, 0x400
push esi
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00452d80
test al, al
je 0x40973d
lea edx, [esp + 0xac]
push edx
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.00457980
mov esi, dword [esp + 0x28]
add esp, 4
sub esi, dword [esp + 0x28]
jne 0x409603
lea ebx, [esp + 0x2c]
lea eax, [esp + 0x8c]
call fcn.00457c20
movzx eax, byte [esp + 0x9b]
movzx ecx, byte [esp + 0x9a]
movzx edx, byte [esp + 0x99]
push eax
movzx eax, byte [esp + 0x9c]
push ecx
movzx ecx, byte [esp + 0x9f]
push edx
movzx edx, byte [esp + 0xa2]
push eax
movzx eax, byte [esp + 0xa5]
push ecx
movzx ecx, byte [esp + 0xa8]
push edx
movzx edx, byte [esp + 0xab]
push eax
movzx eax, byte [esp + 0xae]
push ecx
movzx ecx, byte [esp + 0xb1]
push edx
movzx edx, byte [esp + 0xb4]
push eax
movzx eax, byte [esp + 0xb7]
push ecx
movzx ecx, byte [esp + 0xba]
push edx
movzx edx, byte [esp + 0xbd]
push eax
movzx eax, byte [esp + 0xc0]
push ecx
push edx
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
lea ecx, [esp + 0x4f0]
push 0x400
push ecx
call fcn.00497cff
lea edx, [esp + 0x4f8]
push edi
push edx
call fcn.00498ec8
add esp, 0x54
lea ecx, [esp + 0x1c]
test eax, eax
jne 0x40974a
call fcn.0044e440
lea ecx, [esp + 0x10]
call fcn.004476c0
lea ecx, [esp + 0xcc4]
call fcn.004444f0
mov al, 1
jmp 0x409797
lea ecx, [esp + 0x10]
call fcn.00447770
lea ecx, [esp + 0x1c]
call fcn.0044e440
lea ecx, [esp + 0x10]
call fcn.004476c0
lea ecx, [esp + 0xcc4]
call fcn.004444f0
jmp 0x409795
mov dword [esp + 0xcc4], vtable.t_str.0
cmp byte [esp + 0xde0], bl
jne 0x409795
mov eax, dword [esp + 0xccc]
lea ecx, [esp + 0xcd0]
cmp eax, ecx
je 0x409795
push eax
call fcn.00498f5b
add esp, 4
xor al, al
mov ecx, dword [esp + 0xcb4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xca0]
xor ecx, esp
call fcn.00497c58
add esp, 0xcb4
ret