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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ace46
mov eax, dword fs:[0]
push eax
sub esp, 0x390
mov eax, dword [0x62d12c]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push esi
push edi
mov eax, dword [0x62d12c]
xor eax, esp
push eax
lea eax, [esp + 0x3a0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov esi, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ebx
call fcn.00406990
cmp eax, ebx
je 0x40c1ae
push eax
push str._DeviceIPControlChannel::update_device_software__validateConnection_failed._Error:_0x_X
push 1
call fcn.005304d0
add esp, 0xc
jmp 0x40c3a1
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004051d0
push 0x1fc
lea eax, [esp + 0x19a]
mov dword [esp + 0x3ac], ebx
mov edi, dword [esp + 0x58]
xor edx, edx
push ebx
push eax
mov word [esp + 0x1a0], dx
call fcn.0055aed0
add esp, 0xc
push ebx
push edi
push str._I64d
lea ecx, [esp + 0x1a0]
push 0xff
push ecx
call fcn.0055abca
add esp, 0x14
push 0x48
mov dword [esp + 0x30], ebx
call fcn.00559a21
add esp, 4
cmp eax, ebx
je 0x40d519
mov dword [esp + 0x28], eax
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x28]
mov al, 1
mov byte [edx + 0x44], al
mov ecx, dword [esp + 0x28]
mov byte [ecx + 0x45], al
mov byte [esp + 0x3a8], al
mov edi, 0x6307d8
cmp byte [ebp + 0xc], bl
jne 0x40c253
mov edi, 0x6307f4
mov edx, 0x630730
lea ecx, [esp + 0x24]
call fcn.0040f890
push 0xffffffffffffffff
push ebx
push edi
mov ecx, eax
call fcn.00422470
mov edx, 0x63074c
lea ecx, [esp + 0x24]
call fcn.0040f890
lea edx, [esp + 0x194]
lea ecx, [edx + 2]
mov di, word [edx]
add edx, 2
cmp di, bx
jne 0x40c284
sub edx, ecx
sar edx, 1
push edx
lea edx, [esp + 0x198]
push edx
mov ecx, eax
call fcn.00422a20
sub esp, 0x10
mov dword [esp + 0x20], esp
mov eax, esp
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00414e30
push str.update.cgi
mov ecx, 2
lea edx, [esp + 0x78]
call fcn.00423fc0
add esp, 0x14
mov esi, dword [esp + 0x38]
add esi, 0x28
mov byte [esp + 0x3a8], 2
call fcn.00404f10
mov dword [esp + 0x10], ebx
push str._DeviceIPControlChannel::update_device_software__Sending_UpdateStart_command_to_device.
push 4
mov byte [esp + 0x3b0], 3
call fcn.005304d0
mov eax, dword [esp + 0x6c]
add esp, 8
cmp dword [esp + 0x78], 8
jae 0x40c30b
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x38]
push 0x168
push eax
lea ebx, [esp + 0x18]
call fcn.0040d6e0
test al, al
jne 0x40c3cc
push str._DeviceIPControlChannel::update_device_software__sendWebRequest_failed_for_UpdateStart_command.
push 1
call fcn.005304d0
mov byte [esp + 0x3b0], 2
mov ecx, dword [esp + 0x18]
add esp, 8
test ecx, ecx
je 0x40c34c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
cmp dword [esp + 0x78], 8
jb 0x40c360
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00558723
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], dx
mov byte [esp + 0x3a8], 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x28]
lea esi, [esp + 0x2c]
call fcn.00414ef0
mov eax, dword [esp + 0x28]
push eax
call fcn.00558723
add esp, 4
mov eax, 8
mov ecx, dword [esp + 0x3a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x388]
xor ecx, esp
call fcn.00558b78
mov esp, ebp
pop ebp
ret 0x10
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
xor edi, edi
push edi
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push 0x630688
mov word [ecx], dx
call fcn.00422470
mov byte [esp + 0x3c4], 5
mov esi, dword [esp + 0x2c]
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
mov dword [eax], esi
cmp esi, edi
je 0x40c415
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x3c8], 3
call fcn.0040e080
mov ebx, eax
cmp ebx, edi
je 0x40c495
mov byte [esp + 0x3a8], 2
cmp esi, edi
je 0x40c43d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x78], 8
jb 0x40c451
mov eax, dword [esp + 0x64]
push eax
call fcn.00558723
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], cx
mov byte [esp + 0x3a8], 6
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
call fcn.00414ef0
mov edx, dword [esp + 0x28]
push edx
call fcn.00558723
add esp, 4
mov eax, ebx
jmp 0x40c3a6
lea ecx, [esp + 0x48]
call fcn.004052b0
mov esi, eax
cmp esi, edi
je 0x40d23e
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, edi
je 0x40c4ba
cmp byte [eax], 0
jne 0x40ce5d
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00414fe0
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
mov dword [esp + 0x2c], edi
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
cmp eax, 1
sete al
mov byte [esp + 0x17], al
test al, al
je 0x40c5ba
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x24], 3
jae 0x40c521
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
push eax
push str._DeviceIPControlChannel::update_device_software__Deletion_of_app_package_is_not_supported_by_device._PackageId:__d
push 1
call fcn.005304d0
add esp, 0xc
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov edx, 0x630784
lea ecx, [esp + 0x24]
mov ebx, eax
call fcn.0040f890
mov edx, ebx
lea edi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40c540
sub edx, edi
sar edx, 1
push edx
push ebx
mov ecx, eax
call fcn.00422a20
sub esp, 0x10
mov dword [esp + 0x28], esp
mov eax, esp
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00414e30
push str.update.cgi
mov ecx, 2
lea edx, [esp + 0x94]
call fcn.00423fc0
add esp, 0x14
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x3ac], 7
call fcn.00414940
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0x94], 8
jb 0x40c6ca
mov edx, dword [esp + 0x80]
push edx
jmp 0x40c6c2
push 0xffffffffffffffff
push edi
xor eax, eax
push 0x630810
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], edi
mov word [esp + 0x8c], ax
call fcn.00422470
mov ebx, 8
mov byte [esp + 0x3a8], bl
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
sub eax, edi
je 0x40c61d
dec eax
je 0x40c613
dec eax
jne 0x40c631
push 0xffffffffffffffff
push edi
push 0x6307f4
jmp 0x40c625
push 0xffffffffffffffff
push edi
push 0x63082c
jmp 0x40c625
push 0xffffffffffffffff
push edi
push 0x6307d8
lea ecx, [esp + 0x8c]
call fcn.00422470
mov edx, 0x630768
lea ecx, [esp + 0x24]
call fcn.0040f890
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x88]
push ecx
mov ecx, eax
call fcn.00422470
sub esp, 0x10
mov dword [esp + 0x28], esp
mov eax, esp
lea edx, [esp + 0x34]
push edx
push eax
call fcn.00414e30
push str.update.cgi
mov ecx, 2
lea edx, [esp + 0xb0]
call fcn.00423fc0
add esp, 0x14
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x3ac], 9
call fcn.00414940
cmp dword [esp + 0xb0], ebx
jb 0x40c6a9
mov eax, dword [esp + 0x9c]
push eax
call fcn.00558723
add esp, 4
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0x94], ebx
jb 0x40c6ca
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00558723
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
xor ecx, ecx
mov word [esp + 0xb8], cx
mov ecx, eax
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], 0
lea edi, [ecx + 2]
jmp 0x40c700
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40c700
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xc0]
call fcn.00422a20
cmp byte [esp + 0x17], 0
mov byte [esp + 0x3a8], 0xa
je 0x40c73c
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov ecx, str.Deleting_application
jmp 0x40c756
cmp dword [esp + 0xcc], 8
jb 0x40c7e3
mov eax, dword [esp + 0xb8]
mov ecx, str.Uploading_bar_file
push eax
push ecx
push str._DeviceIPControlChannel::update_device_software___s:__S
push 3
call fcn.005304d0
mov dword [esp + 0x30], 3
mov esi, dword [esp + 0x30]
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov ebx, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
je 0x40c789
cmp byte [eax], 0
jne 0x40ce79
cmp byte [esp + 0x17], 0
je 0x40c7ef
mov ecx, ebx
cmp ebx, edi
je 0x40c7a1
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], edi
call eax
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x40c7b0
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ebx, [esp + 0x18]
lea edx, [esp + 0x50]
xor ecx, ecx
call fcn.0040dd50
test al, al
je 0x40c8fb
xor ebx, ebx
cmp byte [esp + 0x17], bl
je 0x40c92d
mov eax, 0x6306dc
jmp 0x40c934
lea eax, [esp + 0xb8]
jmp 0x40c751
cmp dword [esp + 0xcc], 8
mov eax, dword [esp + 0xb8]
jae 0x40c807
lea eax, [esp + 0xb8]
push 3
lea edx, [esp + 0x114]
push eax
lea ecx, [esp + 0x114]
mov dword [esp + 0x114], edx
call fcn.004168e0
mov eax, dword [esp + 0x10c]
mov esi, eax
mov byte [esp + 0x3a8], 0xc
push eax
mov dword [esp + 0x40], vtable.FileStream.0
call fcn.004e67a0
add esp, 4
push 0xb0
mov dword [esp + 0x48], eax
call fcn.00559a21
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x3a8], 0xd
cmp eax, edi
je 0x40c877
push 1
push 0x40
push 0x21
push esi
mov ecx, eax
call fcn.00412240
jmp 0x40c879
xor eax, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x3a8], 0xf
mov eax, dword [esp + 0x10c]
lea ecx, [esp + 0x110]
cmp eax, ecx
je 0x40c8a0
push eax
call fcn.0055a19c
add esp, 4
cmp dword [esp + 0x44], edi
je 0x40ceb3
mov ecx, ebx
cmp ebx, edi
je 0x40c8bb
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], edi
call eax
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x40c8ca
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
push ecx
lea ebx, [esp + 0x18]
lea edx, [esp + 0x50]
lea ecx, [esp + 0x44]
call fcn.0040dd50
mov byte [esp + 0x3a8], 0xa
test al, al
jne 0x40c923
lea edx, [esp + 0x3c]
push edx
call fcn.00422e40
mov esi, dword [esp + 0x20]
push esi
push str._DeviceIPControlChannel::update_device_software__sendWebRequest_failed_for_UpdateSend_command._Retry_countdown:__d
push 1
call fcn.005304d0
add esp, 0xc
test esi, esi
jle 0x40cf09
dec esi
mov dword [esp + 0x20], esi
jns 0x40c773
jmp 0x40c7cd
lea eax, [esp + 0x3c]
push eax
call fcn.00422e40
mov eax, 0x6306a4
xor ebx, ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00422470
mov byte [esp + 0x3c4], 0x10
push ecx
mov ecx, dword [esp + 0x30]
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], ecx
cmp ecx, ebx
je 0x40c975
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov byte [esp + 0x3c8], 0xa
call fcn.0040e080
cmp eax, ebx
jne 0x40cf34
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00414fe0
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
sub esp, 0x10
mov dword [eax + 8], eax
mov dword [esp + 0x28], esp
mov eax, esp
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x44], ebx
call fcn.00414e30
push str.update.cgi
mov ecx, 2
lea edx, [esp + 0x94]
call fcn.00423fc0
add esp, 0x14
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x3ac], 0x11
call fcn.00414940
mov byte [esp + 0x3a8], 0xa
cmp dword [esp + 0x94], 8
jb 0x40ca14
mov eax, dword [esp + 0x80]
push eax
call fcn.00558723
add esp, 4
mov byte [esp + 0x37], bl
mov edi, dword [ebp + 0x14]
mov esi, 3
test edi, edi
je 0x40ca2d
cmp byte [edi], 0
jne 0x40cf5b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ca44
mov edx, dword [ecx]
mov eax, dword [edx + 8]
mov dword [esp + 0x10], 0
call eax
cmp dword [esp + 0x78], 8
mov eax, dword [esp + 0x64]
jae 0x40ca53
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x38]
push eax
lea ebx, [esp + 0x14]
call fcn.0040d570
test al, al
jne 0x40ca80
push esi
push str._DeviceIPControlChannel::update_device_software__sendWebRequest_failed_for_UpdateProgress_command._Retry_countdown:__d
push 1
call fcn.005304d0
add esp, 0xc
test esi, esi
jle 0x40cf09
dec esi
jns 0x40ca20
cmp byte [esp + 0x17], 0
mov eax, 0x6306f8
jne 0x40ca91
mov eax, 0x6306c0
push 0xffffffffffffffff
xor esi, esi
xor ecx, ecx
push esi
mov word [esp + 0xa4], cx
mov edi, 7
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], esi
call fcn.00422470
xor edx, edx
mov dword [esp + 0xe8], edi
mov dword [esp + 0xe4], esi
mov word [esp + 0xd4], dx
lea eax, [esp + 0xd4]
push eax
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x3c8], 0x13
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
push esi
lea eax, [esp + 0xc4]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], esi
push eax
mov word [ecx], dx
call fcn.00422470
lea esi, [esp + 0xa0]
call fcn.00401220
add esp, 0x1c
mov byte [esp + 0x3ac], 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x3c]
call eax
cmp al, 1
mov edi, 8
setne bl
mov byte [esp + 0x3a8], 0x13
cmp dword [esp + 0x94], edi
jb 0x40cb58
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00558723
add esp, 4
test bl, bl
jne 0x40cf87
mov eax, dword [0x62fe00]
cmp dword [0x62fe14], edi
jae 0x40cb72
mov eax, 0x62fe00
mov ebx, dword [esp + 0xe4]
mov esi, dword [0x62fe10]
mov edx, ebx
cmp ebx, esi
jb 0x40cb87
mov edx, esi
mov ecx, dword [esp + 0xd4]
cmp dword [esp + 0xe8], edi
jae 0x40cb9e
lea ecx, [esp + 0xd4]
test edx, edx
je 0x40cbb8
mov di, word [ecx]
cmp di, word [eax]
jne 0x40cbc1
add ecx, 2
add eax, 2
dec edx
jne 0x40cba2
mov edi, 8
cmp ebx, esi
jae 0x40cbd0
or eax, 0xffffffff
jmp 0x40cbd7
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x40cbb3
mov edi, 8
jmp 0x40cbd7
xor eax, eax
cmp ebx, esi
setne al
test eax, eax
sete al
test al, al
je 0x40cbea
mov byte [esp + 0x37], 1
jmp 0x40cdbe
mov eax, dword [0x62fe1c]
cmp dword [0x62fe30], edi
jae 0x40cbfc
mov eax, 0x62fe1c
mov esi, dword [0x62fe2c]
mov edx, ebx
cmp ebx, esi
jb 0x40cc0a
mov edx, esi
mov ecx, dword [esp + 0xd4]
cmp dword [esp + 0xe8], edi
jae 0x40cc21
lea ecx, [esp + 0xd4]
test edx, edx
je 0x40cc3b
mov di, word [ecx]
cmp di, word [eax]
jne 0x40cc44
add ecx, 2
add eax, 2
dec edx
jne 0x40cc25
mov edi, 8
cmp ebx, esi
jae 0x40cc53
or eax, 0xffffffff
jmp 0x40cc5a
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x40cc36
mov edi, 8
jmp 0x40cc5a
xor eax, eax
cmp ebx, esi
setne al
test eax, eax
sete al
test al, al
jne 0x40d04d
mov eax, dword [0x630848]
cmp dword [0x63085c], edi
jae 0x40cc79
mov eax, 0x630848
mov esi, dword [0x630858]
mov edx, ebx
cmp ebx, esi
jb 0x40cc87
mov edx, esi
mov ecx, dword [esp + 0xd4]
cmp dword [esp + 0xe8], edi
jae 0x40cc9e
lea ecx, [esp + 0xd4]
test edx, edx
je 0x40ccb8
mov di, word [ecx]
cmp di, word [eax]
jne 0x40ccc1
add ecx, 2
add eax, 2
dec edx
jne 0x40cca2
mov edi, 8
cmp ebx, esi
jae 0x40ccd0
or eax, 0xffffffff
jmp 0x40ccd7
sbb eax, eax
and eax, 0xfffffffe
inc eax
je 0x40ccb3
mov edi, 8
jmp 0x40ccd7
xor eax, eax
cmp ebx, esi
setne al
test eax, eax
sete al
test al, al
je 0x40cdbe
mov eax, 7
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edx
mov word [esp + 0x80], cx
lea ecx, [esp + 0x80]
push ecx
sub esp, 0x1c
mov ecx, esp
mov bl, 0x17
mov byte [esp + 0x3c8], bl
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], edx
push edx
mov dword [ecx + 0x14], eax
lea edx, [esp + 0xc4]
xor eax, eax
push edx
mov word [ecx], ax
call fcn.00422470
lea esi, [esp + 0x110]
call fcn.004013e0
add esp, 0x1c
mov byte [esp + 0x3ac], 0x18
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x3c]
call eax
mov byte [esp + 0x3a8], bl
cmp dword [esp + 0x104], edi
jb 0x40cd7b
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00558723
add esp, 4
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], edi
jae 0x40cd92
lea eax, [esp + 0x80]
push eax
call fcn.0055c838
add esp, 4
push eax
lea esi, [esp + 0x4c]
call fcn.004054b0
cmp dword [esp + 0x94], edi
jb 0x40cdbe
mov edx, dword [esp + 0x80]
push edx
call fcn.00558723
add esp, 4
cmp dword [esp + 0xe8], edi
jb 0x40cdd7
mov eax, dword [esp + 0xd4]
push eax
call fcn.00558723
add esp, 4
xor ecx, ecx
mov byte [esp + 0x3a8], 0xa
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], 0
mov word [esp + 0xd4], cx
cmp dword [esp + 0xb0], edi
jb 0x40ce18
mov edx, dword [esp + 0x9c]
push edx
call fcn.00558723
add esp, 4
cmp byte [esp + 0x37], 0
je 0x40ca18
lea ecx, [esp + 0x48]
call fcn.004052b0
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], 8
mov esi, eax
jb 0x40ce50
mov eax, dword [esp + 0xb8]
push eax
call fcn.00558723
add esp, 4
test esi, esi
jne 0x40c4a8
jmp 0x40d23e
push str._DeviceIPControlChannel::update_device_software__Operation_aborted
push 1
call fcn.005304d0
add esp, 8
mov dword [esp + 0x1c], 0x18
jmp 0x40d23e
push str._DeviceIPControlChannel::update_device_software__Operation_aborted
push 1
call fcn.005304d0
add esp, 8
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x1c], 0x18
jb 0x40d23e
mov ecx, dword [esp + 0xb8]
push ecx
jmp 0x40d236
mov eax, dword [esp + 0xb8]
mov esi, 8
cmp dword [esp + 0xcc], esi
jae 0x40cecf
lea eax, [esp + 0xb8]
push eax
push str._DeviceIPControlChannel::update_device_software__File_stream_length_is_0:__S
push 1
call fcn.005304d0
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x20], esi
mov byte [esp + 0x3ac], 0xa
call fcn.00422e40
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], esi
jmp 0x40d22c
mov eax, 8
mov byte [esp + 0x3a8], 3
mov dword [esp + 0x1c], eax
cmp dword [esp + 0xcc], eax
jb 0x40d23e
mov ecx, dword [esp + 0xb8]
push ecx
jmp 0x40d236
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x1c], eax
jb 0x40d23e
mov edx, dword [esp + 0xb8]
push edx
jmp 0x40d236
push str._DeviceIPControlChannel::update_device_software__Operation_aborted
push 1
call fcn.005304d0
add esp, 8
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], 8
mov dword [esp + 0x1c], 0x18
jmp 0x40d22c
mov esi, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40cf9e
lea esi, [esp + 0x9c]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
push eax
push esi
push str._DeviceIPControlChannel::update_device_software__Error_parsing_device__S_response._Response:__S
push 1
call fcn.005304d0
add esp, 0x10
mov dword [esp + 0x1c], 0x16
cmp dword [esp + 0xe8], edi
jb 0x40cfdb
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00558723
add esp, 4
xor esi, esi
xor edx, edx
mov ebx, 7
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], esi
mov word [esp + 0xd4], dx
cmp dword [esp + 0xb0], edi
jb 0x40d013
mov eax, dword [esp + 0x9c]
push eax
call fcn.00558723
add esp, 4
xor ecx, ecx
mov byte [esp + 0x3a8], 3
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], cx
cmp dword [esp + 0xcc], edi
jb 0x40d23e
mov edx, dword [esp + 0xb8]
push edx
jmp 0x40d236
xor eax, eax
mov edx, 7
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x90], eax
mov word [esp + 0x80], cx
lea ecx, [esp + 0x80]
push ecx
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x3c8], 0x15
mov dword [esp + 0x38], esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
push eax
mov dword [ecx + 0x14], edx
lea eax, [esp + 0xc4]
xor edx, edx
push eax
lea ebx, [esp + 0x4c]
mov word [ecx], dx
call fcn.00422470
lea esi, [esp + 0x110]
call fcn.00401300
mov esi, eax
mov byte [esp + 0x3c8], 0x16
mov ecx, dword [esp + 0x30]
add esp, 0x18
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], ecx
test ecx, ecx
je 0x40d0d8
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edx, ebx
mov ecx, esi
call fcn.00424210
add esp, 8
test al, al
sete bl
mov byte [esp + 0x3a8], 0x15
cmp dword [esp + 0x104], edi
jb 0x40d10a
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.00558723
add esp, 4
test bl, bl
je 0x40d137
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40d125
lea eax, [esp + 0x9c]
push eax
push str._DeviceIPControlChannel::update_device_software__Unable_to_extract__S_error_information
push 1
call fcn.005304d0
add esp, 0xc
jmp 0x40d17b
mov ecx, dword [esp + 0x80]
cmp dword [esp + 0x94], edi
jae 0x40d14e
lea ecx, [esp + 0x80]
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], edi
jae 0x40d165
lea eax, [esp + 0x9c]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
push str._DeviceIPControlChannel::update_device_software__Device__S_error_returned.__Error:__d_Message:__S
push 1
call fcn.005304d0
add esp, 0x14
mov dword [esp + 0x1c], 0x17
cmp dword [esp + 0x94], edi
jb 0x40d19c
mov eax, dword [esp + 0x80]
push eax
call fcn.00558723
add esp, 4
xor esi, esi
xor ecx, ecx
mov ebx, 7
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], esi
mov word [esp + 0x80], cx
cmp dword [esp + 0xe8], edi
jb 0x40d1d4
mov edx, dword [esp + 0xd4]
push edx
call fcn.00558723
add esp, 4
xor eax, eax
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], esi
mov word [esp + 0xd4], ax
cmp dword [esp + 0xb0], edi
jb 0x40d205
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00558723
add esp, 4
xor edx, edx
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0xcc], edi
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xac], esi
mov word [esp + 0x9c], dx
jb 0x40d23e
mov eax, dword [esp + 0xb8]
push eax
call fcn.00558723
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push edx
lea ecx, [esp + 0x28]
call fcn.00414fe0
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
mov dword [eax + 8], eax
xor esi, esi
mov edx, 0x6307a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], esi
call fcn.0040f890
push 0xffffffffffffffff
mov ecx, eax
push esi
cmp dword [esp + 0x24], esi
jne 0x40d289
push 0x62fe00
jmp 0x40d2ab
push 0x62fe1c
call fcn.00422470
mov edx, 0x6307bc
lea ecx, [esp + 0x24]
call fcn.0040f890
push 0xffffffffffffffff
push esi
push 0x630864
mov ecx, eax
call fcn.00422470
sub esp, 0x10
mov dword [esp + 0x28], esp
mov eax, esp
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00414e30
push str.update.cgi
mov ecx, 2
lea edx, [esp + 0x104]
call fcn.00423fc0
add esp, 0x14
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x3ac], 0x19
call fcn.00414940
mov edi, 8
mov byte [esp + 0x3a8], 3
cmp dword [esp + 0x104], edi
jb 0x40d315
mov edx, dword [esp + 0xf0]
push edx
call fcn.00558723
add esp, 4
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x40d328
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov dword [esp + 0x10], esi
call edx
push str._DeviceIPControlChannel::update_device_software__Sending_UpdateEnd_command_to_device.
push 4
call fcn.005304d0
mov eax, dword [esp + 0x6c]
add esp, 8
cmp dword [esp + 0x78], edi
jae 0x40d345
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0x38]
push 0x78
push eax
lea ebx, [esp + 0x18]
call fcn.0040d6e0
test al, al
jne 0x40d3d0
push str._DeviceIPControlChannel::update_device_software__sendWebRequest_failed_for_UpdateEnd_command.
push 1
call fcn.005304d0
mov byte [esp + 0x3b0], 2
mov ecx, dword [esp + 0x18]
add esp, 8
test ecx, ecx
je 0x40d37f
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp dword [esp + 0x78], edi
jb 0x40d392
mov eax, dword [esp + 0x64]
push eax
call fcn.00558723
add esp, 4
xor ecx, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], cx
mov byte [esp + 0x3a8], 0x1a
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
call fcn.00414ef0
mov edx, dword [esp + 0x28]
push edx
jmp 0x40c399
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
xor edi, edi
push edi
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push 0x630714
mov word [ecx], ax
call fcn.00422470
mov byte [esp + 0x3c4], 0x1b
mov esi, dword [esp + 0x2c]
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
mov dword [eax], esi
cmp esi, edi
je 0x40d419
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x3c8], 3
call fcn.0040e080
mov ebx, eax
cmp ebx, edi
je 0x40d499
mov byte [esp + 0x3a8], 2
cmp esi, edi
je 0x40d441
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp dword [esp + 0x78], 8
jb 0x40d455
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00558723
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
mov byte [esp + 0x3a8], 0x1c
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
call fcn.00414ef0
mov eax, dword [esp + 0x28]
push eax
call fcn.00558723
add esp, 4
mov eax, ebx
jmp 0x40c3a6
cmp dword [esp + 0x1c], edi
jne 0x40d4aa
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x3a8], 2
cmp esi, edi
je 0x40d4bf
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
cmp dword [esp + 0x78], 8
jb 0x40d4d3
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00558723
add esp, 4
xor edx, edx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
mov byte [esp + 0x3a8], 0x1d
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x2c]
call fcn.00414ef0
mov eax, dword [esp + 0x28]
push eax
call fcn.00558723
mov eax, dword [esp + 0x20]
add esp, 4
jmp 0x40c3a6
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], ebx
call fcn.0055909d
push 0x60e354
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x44], vtable.std::bad_alloc.0
call fcn.00559aa1
int3