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

Disassembly:
push 0xffffffffffffffff
push 0x41b90a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0xdb7604]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x70], esi
call dword [0x41ebfc]
push esi
push 0x41ee92
mov byte [esp + 0x74], 1
call dword [0x41e440]
add esp, 8
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 2
call dword [0x41ec00]
test al, al
jne 0x40ce2f
lea ecx, [esp + 0x18]
call dword [0x41ec04]
test al, al
je 0x40cdef
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x41ec08]
mov edi, dword [0x41ec0c]
lea edx, [esp + 0x28]
push edx
mov ecx, eax
mov byte [esp + 0x70], 3
call edi
push eax
lea ecx, [esp + 0x24]
call dword [0x41e204]
lea ecx, [esp + 0x28]
call dword [0x41e510]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 2
call dword [0x41ec10]
mov esi, dword [0x41ec14]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
call esi
push str.Version
mov ecx, eax
mov byte [esp + 0x70], 4
call dword [0x41e498]
lea ecx, [esp + 0x30]
mov bl, al
mov byte [esp + 0x6c], 2
call dword [0x41e510]
test bl, bl
je 0x40cb61
cmp byte [esp + 0x78], 0
je 0x40cb53
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 0x40]
jmp 0x40cb5b
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 0x44]
call dword [0x41e154]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call esi
or dword [esp + 0x1c], 1
push str.UpdateInProgress
mov ecx, eax
mov byte [esp + 0x70], 5
call dword [0x41e498]
test al, al
je 0x40cb92
cmp byte [esp + 0x78], 0
jne 0x40cb92
mov bl, 1
jmp 0x40cb94
xor bl, bl
test byte [esp + 0x1c], 1
mov dword [esp + 0x6c], 2
je 0x40cbb2
and dword [esp + 0x1c], 0xfffffffe
lea ecx, [esp + 0x34]
call dword [0x41e510]
test bl, bl
je 0x40cbd6
push 0x41f200
lea ecx, [esp + 0x24]
call dword [0x41e498]
test al, al
je 0x40cdef
mov byte [ebp + 0x21], 1
jmp 0x40cdef
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call esi
push str.Date
mov ecx, eax
mov byte [esp + 0x70], 6
call dword [0x41e498]
lea ecx, [esp + 0x38]
mov bl, al
mov byte [esp + 0x6c], 2
call dword [0x41e510]
test bl, bl
je 0x40cc6a
push 6
push str.ddMMyy
call dword [0x41e440]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov byte [esp + 0x80], 7
call dword [0x41e2f8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 2
call dword [0x41e510]
cmp byte [esp + 0x78], 0
je 0x40cc5f
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x34], edi
jmp 0x40cdef
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x3c], edi
jmp 0x40cdef
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1c]
call esi
mov ebx, dword [esp + 0x1c]
or ebx, 2
push str.NotUpdatedFile
mov ecx, eax
mov byte [esp + 0x70], 8
mov dword [esp + 0x20], ebx
call dword [0x41e498]
test al, al
je 0x40cca2
cmp byte [esp + 0x78], 0
mov byte [esp + 0x17], 1
je 0x40cca7
mov byte [esp + 0x17], 0
mov dword [esp + 0x6c], 2
test bl, 2
je 0x40ccc5
and ebx, 0xfffffffd
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ebx
call dword [0x41e510]
cmp byte [esp + 0x17], 0
lea ecx, [esp + 0x18]
je 0x40cd1a
lea eax, [esp + 0x44]
push eax
call dword [0x41ec08]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
mov byte [esp + 0x70], 9
call edi
push eax
lea ecx, [ebp + 0x5c]
mov byte [esp + 0x70], 0xa
call fcn.0040bd60
lea ecx, [esp + 0x40]
mov byte [esp + 0x6c], 9
call dword [0x41e510]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 2
call dword [0x41ec10]
jmp 0x40cdef
lea edx, [esp + 0x48]
push edx
call esi
or ebx, 4
push str.Notes
mov ecx, eax
mov byte [esp + 0x70], 0xb
mov dword [esp + 0x20], ebx
call dword [0x41e498]
test al, al
je 0x40cd4a
cmp byte [esp + 0x78], 0
mov byte [esp + 0x17], 1
je 0x40cd4f
mov byte [esp + 0x17], 0
mov dword [esp + 0x6c], 2
test bl, 4
je 0x40cd6d
and ebx, 0xfffffffb
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], ebx
call dword [0x41e510]
cmp byte [esp + 0x17], 0
je 0x40cdd1
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 8]
push 1
call dword [0x41e7e8]
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call dword [0x41ec08]
lea edx, [esp + 0x4c]
push edx
mov ecx, eax
mov byte [esp + 0x70], 0xc
call edi
push eax
mov eax, dword [ebp + 0x70]
mov ecx, dword [eax + 8]
mov byte [esp + 0x70], 0xd
call dword [0x41e7e4]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x6c], 0xc
call dword [0x41e510]
lea ecx, [esp + 0x50]
mov byte [esp + 0x6c], 2
call dword [0x41ec10]
jmp 0x40cdef
mov ecx, dword [esp + 0x78]
push ecx
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call dword [0x41ec2c]
mov ecx, ebp
call fcn.0040ca40
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call dword [0x41ec18]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0xe
call dword [0x41ec1c]
lea ecx, [esp + 0x54]
mov byte [esp + 0x6c], 2
call dword [0x41ec10]
lea ecx, [esp + 0x18]
call dword [0x41ec00]
test al, al
je 0x40cab1
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call dword [0x41e510]
mov esi, dword [0x41ec10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x6c], 0
call esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
call esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8