Function at 0x406cf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0051c0c0
mov eax, dword [0x590578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x400
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
xor esi, esi
call fcn.00519270
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.00519270
add esp, 0x18
mov dword [0x59969c], esi
cmp dword [0x5998bc], esi
jne 0x406d78
call fcn.00406550
test eax, eax
je 0x406de5
mov esi, 0x1e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0x406ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
push 4
mov dword [ebp - 0x100c], ebx
call fcn.004075df
mov edi, eax
add esp, 4
test edi, edi
je 0x406dae
mov dword [edi], esi
jmp 0x406db0
xor edi, edi
push ecx
mov ecx, edi
call fcn.00403260
cmp eax, 1
je 0x406df8
call fcn.00406550
test eax, eax
mov ecx, 0x1f
cmovne esi, ecx
test edi, edi
je 0x406de5
mov ecx, dword [edi]
test ecx, ecx
je 0x406ddc
mov edx, dword [ecx]
push 1
call dword [edx]
push edi
call fcn.0040760c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005175f7
mov esp, ebp
pop ebp
ret
sub esp, 8
lea eax, [ebp - 0x204]
push eax
push ecx
lea edx, [ebp - 0x808]
xor ecx, ecx
call fcn.00407410
add esp, 0x10
mov ecx, edi
cmp eax, 3
jne 0x406e3b
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
sub esp, 0x10
call fcn.00403870
mov esi, eax
mov eax, 2
jmp 0x406e50
push 0
push 0
push 0
sub esp, 0x10
call fcn.00403870
mov esi, eax
mov eax, 3
mov dword [ebp - 0x1010], eax
cmp esi, 5
jne 0x406f15
xor ebx, ebx
cmp eax, 2
jne 0x406e75
call fcn.004073b0
mov dword [ebp - 0x1010], 3
push 0x402
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.00519270
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00519270
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
push ecx
lea edx, [ebp - 0x808]
mov ecx, 1
call fcn.00407410
add esp, 0x10
cmp eax, 3
jne 0x406f0f
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
sub esp, 0x10
mov ecx, edi
call fcn.00403870
mov esi, eax
cmp esi, 1
je 0x406f02
push 0
push str.jp.co.canon.SolutionMenuEX_Proxy
call dword [sym.imp.credui.dll_CredUIConfirmCredentialsW]
cmp esi, 5
jne 0x406f0f
inc ebx
cmp ebx, 3
jge 0x406f0f
mov eax, dword [ebp - 0x1010]
jmp 0x406e61
push 1
push str.jp.co.canon.SolutionMenuEX_Proxy
call dword [sym.imp.credui.dll_CredUIConfirmCredentialsW]
mov ebx, dword [ebp - 0x100c]
mov eax, dword [0x599ac8]
test eax, eax
je 0x406f2b
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x406f36
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
je 0x40703a
sub esi, 0x12c
je 0x407033
sub esi, 2
je 0x406fc8
cmp dword [0x59823c], 0
mov ebx, 0xa
jne 0x40703f
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea eax, [ebp - 0x1008]
push eax
push 0x7a
push dword [0x5998b4]
call esi
push 0x100
lea eax, [ebp - 0x404]
push eax
push 0x67
push dword [0x5998b4]
call esi
mov ecx, dword [0x599ac8]
test ecx, ecx
je 0x407001
cmp dword [0x59b164], 1
mov edx, 0x180010
mov eax, 0x10
cmove eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x1008]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40703f
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x400
lea eax, [ebp - 0x1008]
push eax
push 0x7b
push dword [0x5998b4]
call esi
push 0x100
lea eax, [ebp - 0x404]
push eax
push 0x67
push dword [0x5998b4]
call esi
mov ebx, 0xb
jmp 0x406f92
mov esi, 0x10
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [0x59b164], 1
mov ecx, 0x180010
cmove esi, ecx
push esi
lea ecx, [ebp - 0x404]
push ecx
lea ecx, [ebp - 0x1008]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40703f
mov ebx, 0xe
jmp 0x40703f
mov ebx, 1
test edi, edi
je 0x407058
mov ecx, dword [edi]
test ecx, ecx
je 0x40704f
mov edx, dword [ecx]
push 1
call dword [edx]
push edi
call fcn.0040760c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.005175f7
mov esp, ebp
pop ebp
ret