Function at 0x405960
Capabilities:
Access the windows event log
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4de42f
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x50c7c4]
xor eax, esp
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [0x50c7c4]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 4]
mov dword [esp + 0x10], 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4059f2
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push 4
push esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.LenovoCCSDK_start
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0xf0], 0
call fcn.00424920
mov esi, eax
lea eax, [esp + 0x44]
cmp eax, esi
je 0x405a57
cmp dword [esp + 0x58], 0x10
jb 0x405a38
push dword [esp + 0x44]
call fcn.004a78e3
add esp, 4
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.00403310
cmp dword [esp + 0x28], 0x10
jb 0x405a6a
push dword [esp + 0x14]
call fcn.004a78e3
add esp, 4
push 0x4ef4f8
lea edx, [esp + 0x48]
lea ecx, [esp + 0x90]
call fcn.0040a550
add esp, 4
push 0x4ef4fc
mov edx, eax
mov byte [esp + 0xf4], 1
lea ecx, [esp + 0x60]
call fcn.00403c80
add esp, 4
push 0x4ef4f8
mov edx, eax
mov byte [esp + 0xf4], 2
lea ecx, [esp + 0x30]
call fcn.00403c80
add esp, 4
cmp dword [esp + 0x70], 0x10
jb 0x405acb
push dword [esp + 0x5c]
call fcn.004a78e3
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0xf0], 5
cmp dword [esp + 0xa0], 0x10
jb 0x405b01
push dword [esp + 0x8c]
call fcn.004a78e3
add esp, 4
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x405b30
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x405b5b
jmp 0x405b34
lea esi, [esp + 0x2c]
lea eax, [esp + 0xa4]
push eax
push esi
call fcn.004a9204
add esp, 8
test eax, eax
sete al
test al, al
jne 0x405b57
push esi
call fcn.004a9848
add esp, 4
mov esi, dword [esp + 0x2c]
cmp dword [esp + 0x40], 0x10
lea edx, [esp + 0x2c]
cmovae edx, esi
call fcn.00405790
lea ecx, [esp + 0x74]
call fcn.00424920
push str.debuglog.txt
mov edx, eax
mov byte [esp + 0xf4], 6
lea ecx, [esp + 0x18]
call fcn.00403c80
add esp, 4
mov byte [esp + 0xf0], 7
cmp dword [eax + 0x14], 0x10
jb 0x405ba0
mov eax, dword [eax]
sub esp, 8
mov edx, str.start_to_retrieve_global_config
mov ecx, eax
call fcn.00424590
add esp, 8
cmp dword [esp + 0x28], 0x10
jb 0x405bc5
push dword [esp + 0x14]
call fcn.004a78e3
add esp, 4
mov byte [esp + 0xf0], 5
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x405bf8
push dword [esp + 0x74]
call fcn.004a78e3
add esp, 4
mov ecx, 0x512b20
call fcn.00412c20
inc dword [0x512bec]
mov ecx, 0x512b20
call fcn.004124d0
lea ecx, [esp + 0x74]
call fcn.00424920
push str.debuglog.txt
mov edx, eax
mov byte [esp + 0xf4], 8
lea ecx, [esp + 0x18]
call fcn.00403c80
add esp, 4
mov byte [esp + 0xf0], 9
cmp dword [eax + 0x14], 0x10
jb 0x405c46
mov eax, dword [eax]
sub esp, 8
mov edx, str.end_to_retrieve_global_config
mov ecx, eax
call fcn.00424590
add esp, 8
cmp dword [esp + 0x28], 0x10
jb 0x405c6b
push dword [esp + 0x14]
call fcn.004a78e3
add esp, 4
mov byte [esp + 0xf0], 5
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x405c9e
push dword [esp + 0x74]
call fcn.004a78e3
add esp, 4
mov ecx, 0x512c30
call fcn.00420f10
push ecx
mov edx, edi
call fcn.0040a640
add esp, 4
cmp dword [esp + 0x40], 0x10
jb 0x405cc6
push dword [esp + 0x2c]
call fcn.004a78e3
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x405cee
push dword [esp + 0x44]
call fcn.004a78e3
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 8