Function at 0x41e6b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cd99b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
mov eax, dword [str.ReadConfig__]
push ebx
push esi
mov edx, dword [0x4e069c]
push edi
mov edi, ecx
mov ecx, dword [0x4e0698]
mov dword [esp + 0x40], eax
mov al, byte [0x4e06a0]
mov dword [esp + 0x44], ecx
mov ecx, dword [str.ECOP_CL_RES_CONFIG]
mov dword [esp + 0x50], edi
push ecx
mov dword [esp + 0x4c], edx
mov byte [esp + 0x50], al
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b650
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41e754
mov edx, dword [str.ECOP_CL_RES_CONFIG]
lea eax, [edi + 0x55]
push edx
push 0x4e05ac
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d1cd0]
mov edx, dword [edi]
add esp, 0x10
lea eax, [esp + 0x40]
push 0x17b
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov eax, 0x23
jmp 0x41ec7f
mov edx, dword [edi + 0x1119c]
lea esi, [edi + 0x1119c]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [str.funccode]
push edx
mov edx, dword [str.SOFTWAREBaosightlsagentgeneral]
push esi
mov ebx, 4
push ecx
push edx
mov ecx, eax
mov dword [esp + 0x24], ebx
call fcn.0043f580
cmp eax, 0x10
jb 0x41e798
mov dword [esi], 0
test byte [esi], 0x40
je 0x41e869
test byte [esp + 0x20], 0x40
jne 0x41e869
mov ecx, dword [str.ECOP_CL_RES_CONFIG]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
mov edx, dword [str.SOFTWAREBaosightlsagent_filemonitor]
push edx
push 0x43b060
push str.getAuditFileConfig
call fcn.00437130
add esp, 0xc
cmp eax, 0x10
jb 0x41e810
push 0x4e2be4
lea eax, [edi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d1cd0]
mov edx, dword [edi]
add esp, 0xc
lea eax, [esp + 0x40]
push 0x18e
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov edx, dword [str.ECOP_CL_RES_CONFIG]
push edx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b650
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41e86d
mov eax, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [edi + 0x55]
push eax
push 0x4e05ac
push 0xfff
push ecx
call fcn.00466ca7
mov ecx, dword [0x4d1cd0]
mov edx, dword [edi]
add esp, 0x10
lea eax, [esp + 0x40]
push 0x194
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
mov eax, 0x23
jmp 0x41ec7f
mov eax, dword [esp + 0x14]
test byte [esi], 0x40
jne 0x41e890
mov eax, dword [str.ECOP_CL_RES_CONFIG]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
xor eax, eax
jmp 0x41ec7f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
lea esi, [edi + 0x111a0]
push ecx
mov ecx, dword [str.allowedcount]
push edx
mov edx, dword [str.SOFTWAREBaosightlsagent_filemonitor]
push esi
push ecx
push edx
mov ecx, eax
mov dword [esp + 0x24], ebx
call fcn.0043f580
cmp eax, 0x10
jb 0x41e8c5
mov dword [esi], 0xffffff
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [str.SOFTWAREBaosightlsagent_filemonitor]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push str.examext
push eax
mov dword [esp + 0x24], ebx
call fcn.0043f580
cmp eax, 0x10
jb 0x41e8fa
mov byte [edi + 0x113f4], 0
jmp 0x41e908
cmp dword [esp + 0x20], 1
sete cl
mov byte [edi + 0x113f4], cl
lea edx, [esp + 0x10]
push ebp
lea eax, [esp + 0x1c]
push edx
mov edx, dword [str.SOFTWAREBaosightlsagent_filemonitor]
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push str.extcount
push edx
mov dword [esp + 0x28], ebx
call fcn.0043f580
mov esi, dword [edi + 0x113e8]
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x113f0]
lea ebx, [edi + 0x113e4]
cmp eax, 0x10
mov eax, dword [esi]
sbb ebp, ebp
mov dword [esp + 0x20], eax
and ebp, edx
test ecx, ecx
mov dword [esp + 0x58], ebp
je 0x41e99d
mov ecx, eax
cmp eax, ecx
jne 0x41e99d
cmp esi, esi
jne 0x41e99d
mov eax, dword [esi + 4]
mov ecx, ebx
push eax
call fcn.004204e0
mov ecx, dword [ebx + 4]
mov edx, dword [0x4f627c]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], 0
mov ecx, ebx
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
lea eax, [esp + 0x64]
push eax
call fcn.0041fd50
jmp 0x41e9c6
cmp eax, esi
je 0x41e9c6
lea ecx, [esp + 0x5c]
push 0
push ecx
lea ecx, [esp + 0x28]
call fcn.004207c0
mov edx, dword [eax]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, ebx
call fcn.004200b0
cmp dword [esp + 0x20], esi
jne 0x41e9a1
xor esi, esi
test ebp, ebp
mov dword [esp + 0x20], esi
jle 0x41ec65
push esi
lea ecx, [esp + 0xb8]
push str.ext_d
push ecx
call fcn.00467d68
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x74]
push edx
push eax
mov eax, dword [str.SOFTWAREBaosightlsagent_filemonitor]
lea edx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0x40
call fcn.0043f580
cmp eax, 0x10
jb 0x41ea67
mov edx, dword [str.SOFTWAREBaosightlsagent_filemonitor]
lea ecx, [esp + 0xb4]
push ecx
push edx
push 0x4e2bb4
lea eax, [edi + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov ecx, dword [0x4d1cd0]
mov edx, dword [edi]
add esp, 0x14
lea eax, [esp + 0x44]
push 0x1c8
push eax
push ecx
mov ecx, edi
call dword [edx + 0x10]
jmp 0x41ec58
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41eaa0
movsx edx, byte [esp + esi + 0x74]
push edx
call fcn.0046826a
mov byte [esp + esi + 0x78], al
add esp, 4
lea edi, [esp + 0x74]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x41ea7b
mov al, byte [esp + 0x13]
lea edi, [esp + 0x74]
mov byte [esp + 0x2c], al
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x30], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov ebp, ecx
push 1
push ebp
lea ecx, [esp + 0x34]
call fcn.00404fd0
test al, al
je 0x41eaf8
mov edi, dword [esp + 0x30]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov byte [eax + ebp], 0
mov edi, dword [ebx + 4]
mov ecx, dword [0x4f627c]
xor ebp, ebp
mov al, 1
mov esi, dword [edi + 4]
mov dword [esp + 0x1c0], ebp
cmp esi, ecx
je 0x41eb3a
lea ecx, [esi + 0xc]
mov edi, esi
push ecx
lea ecx, [esp + 0x30]
call fcn.0040d380
test eax, eax
setl al
test al, al
je 0x41eb2f
mov esi, dword [esi]
jmp 0x41eb32
mov esi, dword [esi + 8]
cmp esi, dword [0x4f627c]
jne 0x41eb13
mov cl, byte [ebx + 8]
test cl, cl
je 0x41eb64
lea edx, [esp + 0x12]
lea eax, [esp + 0x2c]
push edx
push eax
push edi
lea ecx, [esp + 0x6c]
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.00420550
push eax
jmp 0x41ebf4
test al, al
mov dword [esp + 0x28], edi
je 0x41ebb0
lea edx, [esp + 0x5c]
mov ecx, ebx
push edx
call fcn.0041fd50
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
cmp ecx, edx
sete al
test al, al
je 0x41eba7
lea edx, [esp + 0x12]
lea eax, [esp + 0x2c]
push edx
push eax
push edi
lea ecx, [esp + 0x70]
push esi
push ecx
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.00420550
push eax
jmp 0x41ebf4
lea ecx, [esp + 0x28]
call fcn.004208b0
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
lea ecx, [edx + 0xc]
call fcn.0040d380
test eax, eax
jge 0x41ebe5
lea ecx, [esp + 0x12]
lea edx, [esp + 0x2c]
push ecx
push edx
push edi
lea eax, [esp + 0x74]
push esi
push eax
mov ecx, ebx
mov byte [esp + 0x26], 1
call fcn.00420550
push eax
jmp 0x41ebf4
lea ecx, [esp + 0x13]
lea edx, [esp + 0x28]
push ecx
mov byte [esp + 0x17], 0
push edx
lea ecx, [esp + 0x44]
call fcn.0041fd60
lea eax, [esp + 0x40]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x74]
call fcn.0041fd60
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c0], 0xffffffff
cmp eax, ebp
je 0x41ec40
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41ec37
cmp al, 0xff
je 0x41ec37
dec al
mov byte [ecx], al
jmp 0x41ec40
push ecx
call fcn.00463c78
add esp, 4
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x58]
inc esi
cmp esi, ebp
mov dword [esp + 0x20], esi
jl 0x41e9d4
mov eax, dword [str.ECOP_CL_RES_CONFIG]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1b4
ret