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

Disassembly:
push 0xffffffffffffffff
push 0x4cd313
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x674
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x5f]
xor edi, edi
push eax
lea ecx, [esp + 0x1f]
push edi
push ecx
lea ecx, [esp + 0x30]
call fcn.0040d740
lea ecx, [esp + 0xd4]
mov dword [esp + 0x68c], edi
call fcn.0047e160
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov edx, dword [str.ECOP_CL_RES_CONFIG]
mov byte [esp + 0x68c], 2
push edx
mov byte [esp + 0x580], 0
mov byte [esp + 0x17c], 0
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b650
cmp eax, edi
mov dword [esp + 0x14], eax
jne 0x40c157
mov eax, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [ebp + 0x55]
push eax
push 0x4e05ac
push 0xfff
push ecx
call fcn.00466ca7
mov eax, dword [0x4d1764]
mov edx, dword [ebp]
add esp, 0x10
mov ecx, ebp
push 0x851
push str.CompareHotfix__
push eax
call dword [edx + 0x10]
jmp 0x40c79b
mov ecx, dword [str.SOFTWAREBaosightlsagenthotfix]
push ecx
mov ecx, eax
call fcn.0043f780
cmp eax, edi
mov dword [esp + 0x54], eax
jne 0x40c201
mov edx, dword [str.SOFTWAREBaosightlsagenthotfix]
lea eax, [ebp + 0x55]
push edx
push 0x4e0b58
push 0xfff
push eax
call fcn.00466ca7
mov eax, dword [0x4d1760]
mov edx, dword [ebp]
add esp, 0x10
mov ecx, ebp
push 0x859
push str.CompareHotfix__
push eax
call dword [edx + 0x10]
mov edx, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
lea ecx, [esp + 0x34]
mov byte [esp + 0x68c], 1
call fcn.00458e30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x68c], 0
call fcn.0047e560
lea ecx, [esp + 0x24]
mov dword [esp + 0x68c], 0xffffffff
call fcn.0040d540
mov eax, 0x23
jmp 0x40cc55
mov esi, dword [eax + 0x48]
cmp esi, edi
je 0x40c3cb
mov bl, byte [esp + 0x1b]
jmp 0x40c214
xor edi, edi
lea eax, [esp + 0x58]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x180]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x6c], 1
mov dword [esp + 0x64], 0x400
call fcn.0043f090
cmp eax, 0x10
jae 0x40c42e
push edi
lea ecx, [esp + 0xa8]
mov byte [esp + 0xa8], bl
call fcn.00403b70
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x17c]
push ecx
push eax
lea ecx, [esp + 0xac]
call fcn.0040dc30
mov cl, byte [esp + 0x1b]
push 0
mov byte [esp + 0x98], cl
lea ecx, [esp + 0x98]
mov byte [esp + 0x690], 3
call fcn.00403b70
lea edi, [esp + 0x17c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x17c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x9c]
call fcn.0040dc30
lea eax, [esp + 0x94]
lea ecx, [esp + 0xb4]
push eax
mov byte [esp + 0x690], 4
call fcn.0040d1a0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x68c], 5
push ecx
lea ecx, [esp + 0xc8]
call fcn.0040d1a0
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x70]
push edx
mov byte [esp + 0x690], 6
call fcn.0040d1a0
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x80]
push eax
mov byte [esp + 0x690], 7
call fcn.0040d1a0
lea ecx, [esp + 0x70]
lea edx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x694], 8
call fcn.0040d780
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x690], 6
call fcn.00403b70
push 1
lea ecx, [esp + 0x74]
call fcn.00403b70
push 1
lea ecx, [esp + 0xc8]
mov byte [esp + 0x690], 4
call fcn.00403b70
push 1
lea ecx, [esp + 0xb8]
call fcn.00403b70
mov byte [esp + 0x68c], 3
push 1
lea ecx, [esp + 0x98]
call fcn.00403b70
push 1
lea ecx, [esp + 0xa8]
mov byte [esp + 0x690], 2
call fcn.00403b70
mov esi, dword [esi + 0x50]
test esi, esi
jne 0x40c212
lea ebx, [ebp + 0x55]
push 0x1000
lea eax, [esp + 0xd8]
push ebx
push eax
call fcn.00485aa0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40c4b8
mov eax, dword [0x4d1760]
mov edx, dword [ebp]
push 0x873
push str.CompareHotfix__
push eax
mov ecx, ebp
call dword [edx + 0x10]
push 0x4e0b80
push 0xfff
push ebx
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0xc
push 0x875
jmp 0x40c773
push esi
push 0x4e0a04
lea eax, [ebp + 0x55]
push 0xfff
push eax
call fcn.00466ca7
mov eax, dword [0x4d1760]
mov edx, dword [ebp]
add esp, 0x10
mov ecx, ebp
push 0x867
push str.CompareHotfix__
push eax
call dword [edx + 0x10]
mov edx, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
lea ecx, [esp + 0x34]
mov byte [esp + 0x68c], 1
call fcn.00458e30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x68c], 0
call fcn.0047e560
lea ecx, [esp + 0x24]
mov dword [esp + 0x68c], 0xffffffff
call fcn.0040d540
mov eax, 0x32
jmp 0x40cc55
lea eax, [esp + 0x6c]
push eax
call fcn.00467f1a
lea ecx, [esp + 0x70]
push ecx
call fcn.00467dba
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x78]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x90]
inc eax
push edx
add ecx, 0x76c
push eax
push ecx
lea edx, [esp + 0x598]
push str._04d__02d__02d__02d:_02d:_02d
push edx
call fcn.00467d68
mov eax, 4
add esp, 0x20
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x60]
push eax
mov eax, dword [str.hotfixseq]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [str.SOFTWAREBaosightlsagentchanges]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0043f580
cmp eax, 0x10
jb 0x40c55e
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x114]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x40c6f8
mov esi, dword [esp + 0x28]
add eax, 0xc
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.0040dac0
cmp dword [esp + 0x20], esi
jne 0x40c6dc
lea ecx, [esp + 0x34]
call fcn.00458e30
mov eax, dword [str.name]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458890
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x40c5bd
mov eax, 0x4d1750
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458920
lea edx, [esp + 0x17c]
lea ecx, [esp + 0x34]
push edx
call fcn.00458cc0
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00458e30
mov eax, dword [0x4d1830]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458890
push 1
lea ecx, [esp + 0x38]
call fcn.004589b0
lea ecx, [esp + esi + 0x17c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00458cc0
lea ecx, [esp + 0x34]
add esi, eax
call fcn.00458e30
mov edx, dword [str.changetime]
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.00458890
lea eax, [esp + 0x580]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458920
lea ecx, [esp + esi + 0x17c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00458cc0
mov eax, dword [esp + 0x1c]
mov edx, dword [str.hotfix]
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x20], eax
push edx
push str._s_d
lea eax, [esp + 0x144]
push 0x40
push eax
call fcn.00466ca7
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov eax, dword [str.SOFTWAREBaosightlsagentchanges]
lea edx, [esp + 0x138]
not ecx
push ecx
lea ecx, [esp + 0x180]
push 1
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.0043f5f0
cmp eax, 0x10
jae 0x40c750
mov edx, dword [str.hotfixseq]
mov eax, dword [str.SOFTWAREBaosightlsagentchanges]
push 4
lea ecx, [esp + 0x20]
push 4
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
call fcn.0043f5f0
cmp eax, 0x10
jae 0x40c750
lea ecx, [esp + 0x10]
call fcn.0040db70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x114]
cmp eax, ecx
jne 0x40c573
mov eax, dword [esp + 0x28]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 0x10], esi
je 0x40c954
mov edi, dword [esp + 0x114]
add esi, 0xc
push esi
lea ecx, [esp + 0x114]
call fcn.0040e640
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x20], eax
cmp eax, ecx
je 0x40c7de
add eax, 0xc
mov ecx, esi
push eax
call fcn.0040d380
test eax, eax
jl 0x40c7de
lea eax, [esp + 0x20]
jmp 0x40c7ed
lea ecx, [esp + 0x17c]
push ecx
push 0x4e0a80
push 0xfff
push ebx
call fcn.00466ca7
mov edx, dword [ebp]
add esp, 0x10
push 0x8a9
mov eax, dword [0x4d1760]
push str.CompareHotfix__
push eax
mov ecx, ebp
call dword [edx + 0x10]
mov edx, dword [str.ECOP_CL_RES_CONFIG]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0044b1e0
mov ecx, eax
call fcn.0044b740
lea ecx, [esp + 0x34]
mov byte [esp + 0x68c], 1
call fcn.00458e30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x68c], 0
call fcn.0047e560
lea ecx, [esp + 0x24]
mov dword [esp + 0x68c], 0xffffffff
call fcn.0040d540
mov eax, 0x10
jmp 0x40cc55
mov eax, dword [esp + 0x114]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
cmp dword [eax], edi
jne 0x40c93b
lea ecx, [esp + 0x34]
call fcn.00458e30
mov ecx, dword [str.name]
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.00458890
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x40c820
mov eax, 0x4d1750
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458920
lea eax, [esp + 0x17c]
lea ecx, [esp + 0x34]
push eax
call fcn.00458cc0
lea ecx, [esp + 0x34]
mov esi, eax
call fcn.00458e30
mov ecx, dword [0x4d1830]
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.00458890
push 0
lea ecx, [esp + 0x38]
call fcn.004589b0
lea edx, [esp + esi + 0x17c]
lea ecx, [esp + 0x34]
push edx
call fcn.00458cc0
lea ecx, [esp + 0x34]
add esi, eax
call fcn.00458e30
mov eax, dword [str.changetime]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.00458890
lea ecx, [esp + 0x580]
push 0
push ecx
lea ecx, [esp + 0x3c]
call fcn.00458920
lea edx, [esp + esi + 0x17c]
lea ecx, [esp + 0x34]
push edx
call fcn.00458cc0
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [str.hotfix]
push ecx
push eax
push str._s_d
lea ecx, [esp + 0x144]
push 0x40
push ecx
call fcn.00466ca7
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [str.SOFTWAREBaosightlsagentchanges]
lea edx, [esp + 0x180]
push 1
lea eax, [esp + 0x140]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0043f5f0
cmp eax, 0x10
jae 0x40c96d
mov eax, dword [str.hotfixseq]
mov ecx, dword [str.SOFTWAREBaosightlsagentchanges]
push 4
lea edx, [esp + 0x20]
push 4
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0043f5f0
cmp eax, 0x10
jae 0x40c96d
lea ecx, [esp + 0x10]
call fcn.0040db70
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
cmp esi, eax
jne 0x40c70a
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x40ca67
push eax
mov ecx, esi
call fcn.0043f430
jmp 0x40c954
lea edx, [esp + 0x17c]
push edx
push 0x4e0a80
push 0xfff
push ebx
call fcn.00466ca7
mov ecx, dword [0x4d1760]
mov eax, dword [ebp]
add esp, 0x10
push 0x8cb
push str.CompareHotfix__
push ecx
mov ecx, ebp
call dword [eax + 0x10]
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
lea ecx, [esp + 0x34]
mov byte [esp + 0x68c], 1
call fcn.00458e30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x68c], 0
call fcn.0047e560
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x694], 0xffffffff
call fcn.0040d770
mov edx, dword [eax]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0040d9e0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00463c78
xor edi, edi
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
xor esi, esi
call fcn.00465cc3
mov eax, dword [0x4f5060]
dec eax
mov dword [0x4f5060], eax
jne 0x40ca47
mov esi, dword [0x4f505c]
mov dword [0x4f505c], edi
lea ecx, [esp + 0x64]
call fcn.00465d5f
cmp esi, edi
je 0x40ca5d
push esi
call fcn.00463c78
add esp, 4
mov eax, 0x10
jmp 0x40cc55
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x40cb26
mov ecx, dword [esp + 0x1c]
mov edx, dword [str.hotfix]
mov eax, ecx
inc ecx
push eax
push edx
push str._s_d
lea eax, [esp + 0x144]
push 0x40
push eax
mov dword [esp + 0x30], ecx
call fcn.00466ca7
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x40cac1
mov eax, 0x4d1750
inc ecx
push ecx
push 1
lea ecx, [esp + 0x140]
push eax
push ecx
mov ecx, esi
call fcn.0043f340
mov eax, dword [esp + 0x10]
mov edx, dword [0x4f505c]
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x40caf8
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
je 0x40cb15
mov eax, ecx
mov ecx, dword [eax]
cmp ecx, edx
jne 0x40caee
jmp 0x40cb15
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x40cb0e
mov eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x40cb00
cmp dword [eax + 8], ecx
je 0x40cb19
mov eax, ecx
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x114]
jne 0x40ca84
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
lea ecx, [esp + 0x34]
mov byte [esp + 0x68c], 1
call fcn.00458e30
lea ecx, [esp + 0xd4]
mov byte [esp + 0x68c], 0
call fcn.0047e560
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov eax, dword [esi]
mov dword [esp + 0x68c], 0xffffffff
mov dword [esp + 0x20], eax
je 0x40cbdc
mov ecx, eax
cmp eax, ecx
jne 0x40cbdc
mov edi, dword [esi + 4]
mov eax, dword [0x4f505c]
cmp edi, eax
mov esi, edi
je 0x40cbbe
mov ecx, dword [esi + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040e2c0
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.0040c010
push edi
call fcn.00463c78
mov eax, dword [0x4f505c]
add esp, 4
cmp esi, eax
mov edi, esi
jne 0x40cb93
mov edx, dword [esp + 0x28]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
jmp 0x40cc02
cmp eax, esi
je 0x40cc02
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0040db70
lea eax, [esp + 0x64]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.0040ddf0
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x40cbe0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00463c78
xor edi, edi
add esp, 4
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
xor esi, esi
call fcn.00465cc3
mov eax, dword [0x4f5060]
dec eax
mov dword [0x4f5060], eax
jne 0x40cc3d
mov esi, dword [0x4f505c]
mov dword [0x4f505c], edi
lea ecx, [esp + 0x54]
call fcn.00465d5f
cmp esi, edi
je 0x40cc53
push esi
call fcn.00463c78
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x680
ret