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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c5df4
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
and dword [esp + 0xec], 0
lea ecx, [esp + 0xf8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xf0], 0x200
mov dword [esp + 0xf4], ecx
and dword [esp + 0x510], 0
mov ecx, 0xfde9
push ecx
push 0xffffffffffffffff
lea ecx, [eax + 4]
lea edx, [esp + 0x48]
call fcn.00412b4a
mov esi, eax
lea eax, [esp + 0xf4]
push eax
mov eax, str.SOFTWARE_
call fcn.00409bb0
add esp, 0xc
push eax
mov eax, esi
call fcn.00407acd
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x44]
call fcn.0040a3ed
push ebx
lea esi, [esp + 0x60]
call fcn.00409de0
lea eax, [esp + 0x14]
push 0x4cb648
push eax
mov edi, esi
mov byte [esp + 0x518], 1
call fcn.00408817
push 0x4cb64c
push eax
lea eax, [esp + 0xc4]
mov byte [esp + 0x520], 2
call fcn.004088bd
add esp, 0x10
push 1
xor edi, edi
lea esi, [esp + 0x18]
mov byte [esp + 0x514], 4
call fcn.0040a3ed
xor ebx, ebx
cmp dword [esp + 0x6c], ebx
je 0x40747a
cmp dword [esp + 0xc8], 8
mov eax, dword [esp + 0xb4]
jae 0x40746b
lea eax, [esp + 0xb4]
push eax
call fcn.00479c22
pop ecx
test al, al
jne 0x40757f
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x407489
lea eax, [esp + 0x5c]
mov ecx, dword [0x4f546c]
push eax
push str.CheckValidateUserCustomUpgrade____file_path_check_falied:__s___To_Read_from_Register
push 1
call fcn.0047b708
add esp, 0xc
push 7
pop eax
mov dword [esp + 0x90], eax
mov dword [esp + 0xac], eax
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], cx
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
mov byte [esp + 0x510], 5
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xec]
mov word [ecx + edx*2], ax
mov esi, dword [esp + 0xf4]
push esi
call fcn.004a5eb4
pop ecx
mov ecx, esi
lea esi, [esp + 0x7c]
call fcn.00409cca
mov esi, 0x4ccdb4
push esi
call fcn.004a5eb4
pop ecx
mov ecx, esi
lea esi, [esp + 0x98]
call fcn.00409cca
cmp dword [esp + 0xac], 8
mov edx, dword [esp + 0x98]
jae 0x40752f
mov edx, esi
cmp dword [esp + 0x90], 8
mov ecx, dword [esp + 0x7c]
jae 0x407541
lea ecx, [esp + 0x7c]
lea eax, [esp + 0x40]
push eax
call fcn.004846f9
pop ecx
mov ebx, eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x510], 6
call fcn.00409d73
push 1
xor edi, edi
lea esi, [esp + 0x44]
call fcn.0040a3ed
lea ebx, [esp + 0x78]
mov byte [esp + 0x510], 4
call fcn.004012ef
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x6c], ebx
je 0x4076af
lea eax, [esp + 0xd0]
push 0x4cb648
push eax
lea edi, [esp + 0x64]
call fcn.00408817
push 0x4cb64c
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0x520], 7
call fcn.004088bd
add esp, 0x10
push 1
xor edi, edi
lea esi, [esp + 0xd4]
mov byte [esp + 0x514], 9
call fcn.0040a3ed
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4075f0
lea eax, [esp + 0x40]
push eax
call fcn.00479c22
pop ecx
test al, al
je 0x4076a2
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x40760e
lea ebx, [esp + 0x40]
lea esi, [esp + 0x30]
call fcn.00479b59
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
xor eax, eax
mov edx, dword [esp + eax + 0x30]
cmp edx, dword [esp + eax + 0x14]
jne 0x40763f
add eax, 4
cmp eax, 0x10
jl 0x40762b
jmp 0x4076a0
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ecx
mov word [esp + 0x14], ax
mov byte [esp + 0x510], 0xa
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x407669
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0047cdfe
pop ecx
pop ecx
test al, al
je 0x407693
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x407689
lea eax, [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
call fcn.004088ee
push 1
xor edi, edi
lea esi, [esp + 0x18]
call fcn.0040a3ed
xor ebx, ebx
push 1
xor edi, edi
lea esi, [esp + 0x44]
call fcn.0040a3ed
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
xor eax, eax
mov ecx, dword [esp + eax + 0x30]
cmp ecx, dword [esp + eax + 0x14]
jne 0x40770f
add eax, 4
cmp eax, 0x10
jl 0x4076c1
push 1
xor edi, edi
lea esi, [esp + 0xb8]
call fcn.0040a3ed
push 1
lea esi, [esp + 0x60]
call fcn.0040a3ed
lea eax, [esp + 0xf8]
cmp dword [esp + 0xf4], eax
je 0x40770b
push dword [esp + 0xf4]
call fcn.004a5f5b
pop ecx
xor al, al
jmp 0x407785
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
add esi, 0x302
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
call fcn.00408d10
mov eax, dword [esp + ebx + 0x14]
mov ecx, dword [esp + ebx + 0x30]
cmp eax, ecx
ja 0x4077ab
jb 0x407749
add ebx, 4
cmp ebx, 0x10
jl 0x407733
xor bl, bl
push 1
xor edi, edi
lea esi, [esp + 0xb8]
call fcn.0040a3ed
push 1
lea esi, [esp + 0x60]
call fcn.0040a3ed
lea eax, [esp + 0xf8]
cmp dword [esp + 0xf4], eax
je 0x407783
push dword [esp + 0xf4]
call fcn.004a5f5b
pop ecx
mov al, bl
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret 4
mov bl, 1
jmp 0x40774b