Function at 0x445b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1090
call fcn.0045ab38
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
xorpd xmm0, xmm0
movapd xmmword [esp + 0x70], xmm0
movapd xmmword [esp + 0x60], xmm0
movapd xmmword [esp + 0x50], xmm0
xor esi, esi
test ebx, ebx
je 0x445eb4
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time32]
add esp, 4
mov edi, eax
push dword [ebx + 0x24]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__difftime32]
add esp, 8
fstp qword [esp + 0x48]
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x40], xmm0
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat32i64]
add esp, 8
test eax, eax
js 0x445e0a
mov eax, dword [ebx + 0x24]
cmp edi, eax
jl 0x445be4
cmp dword [esp + 0x74], eax
jg 0x445be4
movsd xmm0, qword [0x4a7840]
ucomisd xmm0, qword [esp + 0x40]
ja 0x445eb2
test byte [ebx + 0x28], 1
je 0x445be4
movsd xmm0, qword [0x4a7848]
ucomisd xmm0, qword [esp + 0x40]
ja 0x445eb2
push 0
push dword [ebx + 0x14]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__open
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
js 0x445e0a
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
jmp 0x445c3b
push edi
call fcn.0042e840
add esp, 4
mov ebx, esi
mov dword [esp + 0xc], 0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x445c60
push str.mdraid
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x445cf0
xorpd xmm0, xmm0
movapd xmmword [esp + 0x30], xmm0
mov esi, dword [esp + 0x14]
push 0x1000
push 0
lea eax, [esp + 0x88]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
test esi, esi
js 0x445cf0
push esi
call fcn.0045ac90
add esp, 4
add eax, 0xffff0000
adc edx, 0xffffffff
and eax, 0xffff0000
push 0
push edx
push eax
push esi
call fcn.0045ae00
add esp, 0x10
test edx, edx
js 0x445cf0
push 0x1000
lea eax, [esp + 0x84]
push eax
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
cmp eax, 0x1000
jne 0x445cf0
cmp dword [esp + 0x80], 0xfc4e2ba9
je 0x445ebe
cmp dword [esp + 0x80], 0xa92b4efc
je 0x445ebe
nop
mov eax, dword [str.oracleasm]
test eax, eax
je 0x445db0
mov esi, 0x4b6470
jmp 0x445d1e
mov eax, dword [esi + 0x18]
add esi, 0x18
test eax, eax
je 0x445db0
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x445d33
push ecx
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x445d10
mov edx, dword [esi + 8]
shr edx, 0xa
add edx, dword [esi + 4]
mov eax, edx
sar eax, 0x1f
shld eax, edx, 0xa
shl edx, 0xa
lea ecx, [esp + 0x14]
push 0x400
push eax
call fcn.00445f80
add esp, 8
test eax, eax
je 0x445d10
mov edi, eax
mov eax, dword [esi + 8]
mov ecx, 0x3ff
and eax, ecx
add eax, edi
push dword [esi + 0xc]
push eax
push dword [esi + 0x10]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x445d10
mov eax, dword [esi + 0x14]
test eax, eax
je 0x445e3e
push edi
push esi
lea ecx, [esp + 0x1c]
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x445d10
jmp 0x445e3e
cmp dword [ebx + 0x18], 0
je 0x445e7e
push ebx
call fcn.0042e7b0
add esp, 4
mov edi, eax
lea esi, [esp + 0x10]
push esi
mov esi, ebx
lea ebx, [esp + 0x10]
push ebx
push eax
nop word cs:[eax + eax]
nop dword [eax]
call fcn.0042e7e0
add esp, 0xc
test eax, eax
jne 0x445c30
push 0
push 0
push dword [esp + 0x14]
push esi
call fcn.0042e460
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
push edi
jmp 0x445de0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 1
je 0x445eb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xd
je 0x445eb2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 2
je 0x445eb2
push ebx
call fcn.0042ee70
add esp, 4
jmp 0x445eb4
mov eax, dword [esi]
mov dword [esp + 0xc], eax
test eax, eax
je 0x445e89
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x20], eax
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time32]
add esp, 4
mov dword [ebx + 0x24], eax
or byte [ebx + 0x28], 1
mov eax, dword [ebp + 8]
or byte [eax + 0x18], 4
push 0
push dword [esp + 0x10]
push str.TYPE
push ebx
call fcn.0042e460
add esp, 0x10
jmp 0x445e89
push ebx
call fcn.0042ee70
add esp, 4
xor ebx, ebx
push dword [esp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
push dword [esp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
js 0x445eb2
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov esi, ebx
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x445eec
cmp dword [esp + 0xb4], 0
jne 0x445eec
cmp dword [esp + 0xb8], 0
jne 0x445eec
cmp dword [esp + 0xbc], 0
je 0x445f0a
mov dword [esp + 0x30], eax
movsd xmm0, qword [esp + 0xb4]
movsd qword [esp + 0x34], xmm0
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x3c], eax
xorpd xmm0, xmm0
movapd xmmword [esp + 0x90], xmm0
movapd xmmword [esp + 0x80], xmm0
mov dword [esp + 0xa1], 0
mov dword [esp + 0x9d], 0
lea esi, [esp + 0x30]
push esi
call fcn.0045ae10
add esp, 4
test eax, eax
jne 0x445f69
lea edi, [esp + 0x80]
push edi
push esi
call fcn.0045afc0
add esp, 8
push 0x25
push edi
push str.UUID
push ebx
call fcn.0042e460
add esp, 0x10
mov dword [esp + 0xc], str.mdraid
jmp 0x445e48