Function at 0x4583e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dfe1
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x12c], ecx
mov eax, dword [ebp - 0x12c]
cmp dword [eax], 0
jne 0x458435
push str.File_monitor_already_running__out_n
push 0x5ed84c
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x458855
push 0x64149c
mov ecx, dword [ebp - 0x12c]
add ecx, 0x148
call fcn.00458880
mov ecx, dword [ebp - 0x12c]
add ecx, 0x148
call fcn.0045bb70
movzx ecx, al
test ecx, ecx
je 0x45847c
push str.File_monitor_rules_empty__out_n
push 0x5ed8ac
call fcn.0040c230
add esp, 8
xor eax, eax
jmp 0x458855
mov edx, dword [ebp - 0x12c]
add edx, 0x10c
push edx
call fcn.0040dad0
add esp, 4
test eax, eax
jne 0x4584ab
push 0x5ed8c8
mov ecx, dword [ebp - 0x12c]
add ecx, 0x10c
call fcn.00406110
push 0x104
mov eax, dword [ebp - 0x12c]
add eax, 8
push eax
call fcn.004020c0
add esp, 8
push 0x5ed8d4
push 0x104
mov ecx, dword [ebp - 0x12c]
add ecx, 8
push ecx
call fcn.005625d0
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
mov dword [ebp - 0x18], 0xffffffff
lea edx, [ebp - 0x18]
push edx
call fcn.00401bb0
add esp, 4
test eax, eax
jne 0x45851a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Err:_CFileMon::StartFileMonitor__GetCurrActiveSessionId__error_d
push 0x5ed968
call fcn.0040c230
add esp, 0xc
jmp 0x458650
lea ecx, [ebp - 0x94]
call fcn.00433630
mov dword [ebp - 4], 0
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412d30
add esp, 8
test eax, eax
jne 0x458565
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x18]
push edx
push str.Err:_CFileMon::StartFileMonitor__QuerySessionInfoById__SessionID_u__error_d
push 0x5eda28
call fcn.0040c230
add esp, 0x10
jmp 0x45863e
call fcn.00402270
mov dword [ebp - 0xa0], eax
push 0x104
mov eax, dword [ebp - 0x12c]
add eax, 8
push eax
call fcn.004020c0
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00406290
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x4585aa
mov dword [ebp - 0x130], 0
jmp 0x458620
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0x3fffffff
jle 0x4585d8
mov dword [ebp - 0x134], 0
jmp 0x458614
mov eax, dword [ebp - 0x98]
shl eax, 1
call fcn.00570840
mov dword [ebp - 0x138], esp
mov edx, dword [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x98]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call fcn.004022d0
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
push 0x104
mov edx, dword [ebp - 0x12c]
add edx, 8
push edx
call fcn.005625d0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00433660
mov ecx, dword [ebp - 0x12c]
add ecx, 0x128
call fcn.0045bdf0
lea ecx, [ebp - 0x14]
call fcn.004512f0
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x12c]
add ecx, 0x148
call fcn.004308f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
jmp 0x45869f
push 0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x14]
call fcn.0045bf80
lea ecx, [ebp - 0xc8]
push ecx
mov ecx, dword [ebp - 0x12c]
add ecx, 0x148
call fcn.0047b3e0
push eax
lea ecx, [ebp - 0x14]
call fcn.0047bdc0
movzx edx, al
test edx, edx
je 0x4587cc
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0xb0]
mov dword [eax], ecx
mov edx, dword [ebp - 0xac]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x14]
call fcn.004642b0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xf4], esp
push eax
call fcn.00408070
mov dword [ebp - 0x13c], eax
lea edx, [ebp - 0x11c]
push edx
call fcn.00460f60
add esp, 0x2c
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x144], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x144]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00460c60
mov byte [ebp - 4], 2
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x12c]
add ecx, 0x128
call fcn.0045bc20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf0]
call fcn.004588a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.004588a0
lea ecx, [ebp - 0x14]
call fcn.004642b0
mov ecx, eax
call fcn.00406290
push eax
push str.Load_filemon_rule__s
push 0x5eda70
call fcn.0040c230
add esp, 0xc
jmp 0x45868e
mov ecx, dword [ebp - 0x12c]
mov dword [ecx], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x12c]
add eax, 0x148
push eax
push 0x458d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x12c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x12c]
cmp dword [edx + 4], 0
jne 0x45883e
mov eax, dword [ebp - 0x12c]
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_task_generate_work_thread_fail__err_d__out_n
push 0x5edafc
call fcn.0040c230
add esp, 0xc
xor eax, eax
jmp 0x458855
push str.Start_file_monitor_successed__out_n
push str.CFileMon::StartFileMonitor
call fcn.0040c230
add esp, 8
mov eax, 1
lea esp, [ebp - 0x148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret