Function at 0x40bce0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298d6
mov eax, dword fs:[0]
push eax
mov eax, 0x2038
call fcn.00428f70
mov eax, dword [0x43500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, 1
jne 0x40beb1
call fcn.0040bbc0
push 0x401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x8254], 4
jne 0x40bd71
push 0x40
push 0x4300b0
push str.Erase_completed.
push dword [edi + 4]
call fcn.0040b060
add esp, 0x10
mov ecx, edi
call fcn.0040ba60
mov ecx, edi
call fcn.0040b9d0
jmp 0x40c108
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
imul edx, dword [edi + 0x8220], 0x104
mov eax, dword [edx + edi + 0x120]
mov ecx, dword [eax + 0xc]
xor eax, eax
and ecx, 0x1e000
or eax, ecx
je 0x40bdcc
mov edx, str.Update_completed__please_power_off_and_restart_the_camera.
call fcn.00402590
push 0x40
push 0x4300b0
push eax
push dword [edi + 4]
call fcn.0040b060
add esp, 0x10
mov ecx, edi
call fcn.0040ba60
mov ecx, edi
call fcn.0040b9d0
jmp 0x40c108
push 0
lea eax, [edi + 0xa0]
add eax, edx
push eax
lea eax, [ebp - 0x2040]
push eax
call fcn.0040e240
mov dword [ebp - 4], 0
mov edx, str.Update_completed.
cmp dword [ebp - 0x2030], 0
jne 0x40be12
call fcn.00402590
push 0x40
push 0x4300b0
push eax
push dword [edi + 4]
call fcn.0040b060
add esp, 0x10
jmp 0x40be57
cmp dword [ebp - 0x202c], 8
lea esi, [ebp - 0x2040]
cmovae esi, dword [ebp - 0x2040]
call fcn.00402590
push esi
push eax
lea eax, [ebp - 0x2010]
push str._s_n_n_s
push eax
call fcn.00407610
push 0x40
push 0x4300b0
lea eax, [ebp - 0x2010]
push eax
push dword [edi + 4]
call fcn.0040b060
add esp, 0x20
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x202c]
cmp edx, 8
jb 0x40be9e
mov ecx, dword [ebp - 0x2040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c127
push edx
push ecx
call fcn.0040ff97
add esp, 8
mov ecx, edi
call fcn.0040ba60
mov ecx, edi
call fcn.0040b9d0
jmp 0x40c108
test eax, eax
jne 0x40bf1a
test edx, edx
je 0x40bee6
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bec3
sub edx, esi
lea ecx, [edi + 0x8238]
sar edx, 1
push edx
push eax
call fcn.00402a10
mov ecx, edi
call fcn.0040bc40
push 0x401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cvttsd2si ecx, qword [edi + 0x8230]
mov edx, 0x64
push 0
cmp ecx, edx
cmovg ecx, edx
push ecx
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c108
jns 0x40c108
cmp eax, 0x80070017
jg 0x40bf94
je 0x40bf75
cmp eax, 0x80004001
je 0x40bf56
cmp eax, 0x8001011f
jne 0x40bfa2
mov edx, str.Update_failed__time_out
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bf46
jmp 0x40c00b
mov edx, str.Update_failed__not_supported
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bf65
jmp 0x40c00b
mov edx, str.Update_failed__crc_error
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bf84
jmp 0x40c00b
cmp eax, 0x8007001f
je 0x40bfed
cmp eax, 0x800700aa
je 0x40bfcd
cmp dword [edi + 0x8254], 4
mov eax, str.Update_failed__generic_error
mov edx, str.Erase_failed
cmovne edx, eax
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bfc0
jmp 0x40c00b
mov edx, str.Update_failed__camera_is_used_by_other_application
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40bfe0
jmp 0x40c00b
mov edx, str.Update_failed__camera_not_functioning
call fcn.00402590
mov edx, eax
lea esi, [edx + 2]
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40c000
sub edx, esi
lea esi, [edi + 0x8238]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00402a10
mov ecx, edi
call fcn.0040bc40
mov ecx, edi
call fcn.0040bbc0
push esi
lea ecx, [ebp - 0x2028]
call fcn.00403870
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2018]
mov edx, dword [ebp - 0x2014]
cmp ecx, edx
jae 0x40c071
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x2018], eax
lea eax, [ebp - 0x2028]
cmovae eax, dword [ebp - 0x2028]
mov dword [eax + ecx*2], 0x2e
jmp 0x40c08c
push 0x2e
mov byte [ebp - 0x2044], 0
push dword [ebp - 0x2044]
push ecx
lea ecx, [ebp - 0x2028]
call fcn.0040faf0
push ecx
mov eax, esp
lea ecx, [ebp - 0x2028]
mov edx, 0x10
mov dword [eax], 0
cmp dword [ebp - 0x2014], 8
cmovae ecx, dword [ebp - 0x2028]
push ecx
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi + 4]
call fcn.0040aae0
add esp, 8
mov ecx, edi
call fcn.0040ba60
mov ecx, edi
call fcn.0040b9d0
mov edx, dword [ebp - 0x2014]
cmp edx, 8
jb 0x40c108
mov ecx, dword [ebp - 0x2028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c12c
push edx
push ecx
call fcn.0040ff97
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040fcb7
mov esp, ebp
pop ebp
ret 0x10
call fcn.004160bc
call fcn.004160bc
int3