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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ab7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x62d12c]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x62d12c]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
push 7
mov edi, edx
xor eax, eax
xor esi, esi
push str.dtmauth
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], esi
mov word [esp + 0x34], ax
call fcn.00422a20
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], esi
mov esi, dword [ebx + 4]
push ecx
mov eax, ebx
call fcn.004175b0
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 4]
je 0x4049e4
mov ecx, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4049c8
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
push 0
lea ecx, [esp + 0x3c]
call fcn.0041c5b0
test eax, eax
js 0x4049e4
lea eax, [esp + 0x1c]
jmp 0x4049ef
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
cmp dword [eax], esi
mov dword [esp + 0x90], 0xffffffff
setne byte [esp + 0x17]
cmp dword [esp + 0x40], 8
jb 0x404a15
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00558723
add esp, 4
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], 0
je 0x404bda
mov dword [esp + 0x18], 0
lea ebx, [ebx]
mov edi, dword [esp + 0x18]
push 1
push 0
add edi, esi
push 0x5e46f4
mov ecx, edi
call fcn.00414aa0
mov esi, eax
cmp esi, 0xffffffff
je 0x404bda
push 1
push esi
push 0x5e46f8
mov ecx, edi
call fcn.00414a10
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404a9b
push str._DeviceIPControlChannel::CookieManager::UpdateCookies__Invalid_cookie_format__not_found
push 1
call fcn.005304d0
add esp, 8
jmp 0x404ba2
mov edx, ebx
sub edx, esi
push edx
push esi
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0040f3b0
lea esi, [ebx + 1]
mov dword [esp + 0x90], 1
cmp dword [edi + 0x10], esi
jae 0x404ae8
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x404ad3
lea eax, [esp + 0x2c]
push eax
push str._DeviceIPControlChannel::CookieManager::UpdateCookies__Invalid_cookie_format_value_not_found._Cookie:__S.
push 1
call fcn.005304d0
add esp, 0xc
jmp 0x404b84
push 1
push esi
push 0x5e47cc
mov ecx, edi
call fcn.00414a10
cmp eax, 0xffffffff
jne 0x404b00
or eax, eax
jmp 0x404b02
sub eax, esi
push eax
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, edi
call fcn.0040f3b0
push 7
mov byte [esp + 0x94], 2
mov eax, dword [esp + 0x40]
push str.dtmauth
push eax
push 0
lea ecx, [esp + 0x3c]
call fcn.0041c5b0
test eax, eax
jne 0x404b38
mov byte [esp + 0x16], 1
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
call fcn.0040f890
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.00422470
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x404b6d
mov edx, dword [esp + 0x48]
push edx
call fcn.00558723
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x40], esi
jb 0x404ba2
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00558723
add esp, 4
mov eax, dword [esp + 0x20]
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [esp + 0x1c]
add dword [esp + 0x18], 0x1c
mov ebx, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x1c], edi
cmp edi, eax
jb 0x404a50
cmp byte [esp + 0x17], 1
jne 0x404ce3
cmp byte [esp + 0x16], 0
jne 0x404ce3
push str._DeviceIPControlChannel::CookieManager::UpdateCookies__Resetting_authentication_cookies.
push 3
call fcn.005304d0
add esp, 8
xor ecx, ecx
push 7
mov word [esp + 0x4c], cx
push str.dtmauth
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.00422a20
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x9c], 3
call fcn.00417410
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea edi, [esp + 0x28]
mov esi, ebx
call fcn.00414ef0
mov dword [esp + 0x90], 0xffffffff
cmp dword [esp + 0x5c], 8
jb 0x404c75
mov eax, dword [esp + 0x48]
push eax
call fcn.00558723
add esp, 4
xor ecx, ecx
push 0xa
mov word [esp + 0x68], cx
push str.session_id
lea ecx, [esp + 0x6c]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
call fcn.00422a20
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x24]
push eax
push ebx
mov dword [esp + 0x9c], 4
call fcn.00417410
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea edi, [esp + 0x28]
mov esi, ebx
call fcn.00414ef0
cmp dword [esp + 0x78], 8
jb 0x404ce3
mov eax, dword [esp + 0x64]
push eax
call fcn.00558723
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00558b78
mov esp, ebp
pop ebp
ret