Function at 0x408ec0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x59c
mov eax, dword [0x445454]
or eax, dword [0x445450]
mov dword [ebp - 0x580], esp
je 0x4090e1
mov ebx, dword [0x44f368]
test ebx, ebx
je 0x4090e1
mov ecx, dword [0x44f364]
test ecx, ecx
je 0x4090e1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..C:
call sym._CreateFileA_28
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp - 0x584], eax
je 0x4090cc
lea edi, [ebp - 0x548]
xor eax, eax
mov ecx, 0xa
mov edx, dword [0x445454]
rep stosd dword es:[edi], eax
mov eax, dword [0x445450]
mov dword [ebp - 0x540], 0x80000000
mov dword [ebp - 0x524], edx
mov edx, dword [0x44544c]
mov dword [ebp - 0x53c], 1
mov dword [ebp - 0x528], eax
mov eax, dword [0x445448]
mov dword [ebp - 0x544], edx
mov dword [ebp - 0x548], eax
mov eax, 0x2800
call fcn.00421710
sub esp, eax
lea ebx, [esp + 0x20]
mov dword [esp + 8], 0x2800
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._memset
lea eax, [ebp - 0x56c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x2800
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x28
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x548]
mov dword [esp + 4], 0x900bb
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x584]
mov dword [esp], eax
call sym._DeviceIoControl_32
sub esp, 0x20
test eax, eax
je 0x4091fb
mov eax, dword [ebp - 0x56c]
add ebx, 8
sub eax, 8
je 0x4090ad
mov esi, eax
nop
lea esi, [esi]
lea eax, [ebx + 0x3c]
mov dword [esp + 8], 0x435ef2
mov dword [esp + 4], 0x400
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym.___mingw_snprintf
movsx eax, byte [ebp - 0x418]
test al, al
je 0x409085
lea edi, [ebp - 0x418]
lea esi, [esi]
lea edi, [edi]
mov dword [esp], eax
add edi, 1
call sym._tolower
mov byte [edi - 1], al
movsx eax, byte [edi]
test al, al
jne 0x409070
lea eax, [ebp - 0x418]
call dbg.malwareTargetFile
test eax, eax
jne 0x4090ef
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
add ebx, ecx
sub esi, ecx
mov dword [0x445448], eax
mov dword [0x44544c], edx
jne 0x409030
mov eax, dword [ebp - 0x584]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov esp, dword [ebp - 0x580]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._GetLastError_0
mov dword [esp], str.Call_to_CreateFile_in_checkVolumeChanges___has_failed_with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
mov esp, dword [ebp - 0x580]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x560]
call dbg.getFileIdDescriptor
lea eax, [ebp - 0x560]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 7
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x584]
mov dword [esp], eax
call dword [0x44f368]
sub esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x57c], eax
je 0x4091e1
lea edi, [ebp - 0x51c]
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x51c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x57c]
mov dword [esp], eax
call dword [0x44f364]
sub esp, 0x10
test eax, eax
je 0x4091b8
cmp byte [ebp - 0x51c], 0
je 0x4091cf
lea eax, [ebp - 0x51c]
call dbg.whiteListedPathnameForMalware
test eax, eax
je 0x409215
mov eax, dword [ebp - 0x57c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
jmp 0x409094
call sym._GetLastError_0
mov dword [esp], str.Call_to_GetFinalPathNameByHandleA_failed_in_checkVolumeChanges_with_error__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x4091a2
mov dword [esp + 4], eax
mov dword [esp], str.Call_to_GetFinalPathNameByHandleA_failed_because_the_buffer_was_too_small__required__d_bytes_._r_n
call dbg.logEvent
jmp 0x4091a2
call sym._GetLastError_0
mov dword [esp], str.Call_to_OpenFileById_failed_in_checkVolumeChanges_with_error__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x409094
call sym._GetLastError_0
mov dword [esp], str.Call_to_DeviceIoControl___to_read_journal_failed_in_checkVolumeChanges___with_error_code__d_r_n
mov dword [esp + 4], eax
call dbg.logEvent
jmp 0x4090ad
lea eax, [ebp - 0x568]
mov dword [ebp - 0x568], 0
mov dword [ebp - 0x564], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x57c]
mov dword [esp], eax
call sym._GetFileSizeEx_8
sub esp, 8
test eax, eax
je 0x4091a2
mov edx, dword [ebp - 0x564]
test edx, edx
jg 0x409264
mov eax, dword [ebp - 0x568]
test eax, eax
je 0x4091a2
mov dword [esp], str.File_changed_which_needs_passing_to_server_for_malware_scan..._r_n
call dbg.logEvent
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
mov dword [esp], str.USN:__I64x_r_n
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dbg.logEvent
lea eax, [ebp - 0x51c]
mov dword [esp], str.Pathname:__s_r_n
mov dword [esp + 4], eax
call dbg.logEvent
lea eax, [ebp - 0x51c]
xor edx, edx
call dbg.addPathnameToMalwareScanQueue
jmp 0x4091a2