Function at 0x40d733
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5c2f60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.005436e0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.0054b353
add esp, 0x1c
test eax, eax
je 0x40d797
cmp eax, 0xc
je 0x40d939
cmp eax, 0x16
je 0x40d934
cmp eax, 0x22
je 0x40d934
cmp eax, 0x50
jne 0x40d934
mov eax, dword [ebx + 4]
cmp eax, dword [0x576394]
je 0x40d91e
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x40d7c4
xor eax, eax
jmp 0x40d921
lea eax, [ebp - 0x48]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40d7bd
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x40d7ed
mov eax, edi
jmp 0x40d81c
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x40d80a
lea edx, [ebp - 0x38]
push edx
push edi
push eax
call fcn.0040d4d7
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x38]
jmp 0x40d813
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x40d85d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x40d85d
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040968c
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x40d862
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x40d878
mov eax, edi
jmp 0x40d88c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x40d8a5
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040968c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x40d8a9
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x40d8c5
mov eax, edi
jmp 0x40d8d9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
neg eax
sbb eax, eax
neg eax
test eax, eax
je 0x40d8f2
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040968c
mov edi, dword [eax]
mov eax, dword [eax + 4]
jmp 0x40d8f4
mov eax, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x40d90b
mov eax, edi
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x40d91e
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540fa1
mov esp, ebp
pop ebp
ret 4
call fcn.00408199
call fcn.004081b3
int3