Function at 0x405470
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457214
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, dword [esp + 0x78]
xor ebp, ebp
push 0xd
mov dword [esp + 0x20], ebp
push str.internalError
mov ecx, 0x4701f0
mov dword [esp + 0x40], ebp
call fcn.00401d70
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4054d0
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], ebp
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4054fe
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x70], 1
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40552d
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x70], 2
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40555c
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x70], 3
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40558b
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push str.Setup.ini
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x78], 4
push 0x470130
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebp
call fcn.00405060
mov byte [esp + 0x70], 5
cmp dword [esp + 0x34], ebp
jne 0x405729
lea edx, [esp + 0x34]
push edx
call fcn.00420d70
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 6
call fcn.0040f0a0
mov byte [esp + 0x70], 5
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40560c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], ebp
jne 0x405641
mov eax, dword [0x4701e0]
cmp eax, ebp
je 0x40562e
push str.Error:_Unable_to_obtain_Temp_dir_path_
push 1
push eax
call fcn.00417320
add esp, 0xc
mov esi, dword [0x4701d4]
call fcn.0040f520
or ebp, 0xffffffff
jmp 0x405b61
push 9
push str.Setup.ini
lea ecx, [esp + 0x20]
call fcn.00401630
push 0x4701dc
push str._type
push 0x470130
call fcn.00403330
push 0x4606a4
push 0x4701dc
call fcn.0040df10
add esp, 8
xor edx, edx
test al, al
setne dl
push 0x45dd94
add edx, 0x81
movzx eax, dx
movzx eax, ax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [esp + 0x18]
cmp eax, ebp
jne 0x4056a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4056b3
push ebx
mov edi, eax
call fcn.00409240
mov edi, dword [esp + 0x78]
mov esi, eax
cmp esi, ebp
je 0x40572d
cmp dword [0x4701e0], ebp
je 0x405716
lea ecx, [esp + 0x78]
push esi
push ecx
call fcn.00403230
mov byte [esp + 0x78], 7
mov edx, dword [eax]
mov eax, dword [0x4701e0]
push edx
push esi
push ebx
push str.Error:_Extracting_Binary_Recourse_to___s__fails_with_Error_Code__d__s_
push 1
push eax
call fcn.00417320
mov byte [esp + 0x90], 5
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x4701d4]
call fcn.0040f520
or ebp, 0xffffffff
jmp 0x405b61
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4701e0]
cmp eax, ebp
je 0x405746
push str.Start_Offer_Check
push 1
push eax
call fcn.00417320
add esp, 0xc
cmp edi, ebp
je 0x40576c
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x405750
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00401d70
jmp 0x405780
lea ecx, [esp + 0x20]
push ecx
push str._trgb
push 0x470130
call fcn.00403330
lea edx, [esp + 0x24]
push edx
push str._orgb
push 0x470130
call fcn.00403330
push str.Type
push str.Product
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.00420b30
add esp, 0x10
push eax
mov ecx, 0x4701dc
mov byte [esp + 0x74], 8
call fcn.0040f0a0
mov byte [esp + 0x70], 5
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x4701dc]
cmp dword [ecx - 0xc], ebp
jne 0x405803
push 0x4701dc
push str._type
push 0x470130
call fcn.00403330
mov edx, dword [0x4701dc]
cmp dword [edx - 0xc], ebp
jne 0x405825
mov eax, dword [0x4701e0]
cmp eax, ebp
je 0x40562e
push str.Error:_Toolbar_Type_not_specified_
jmp 0x405623
mov edi, 0x470130
call fcn.00403c60
cmp eax, 2
jne 0x40585a
push 0x4606a4
push 0x4701dc
call fcn.0040df10
add esp, 8
test al, al
je 0x40585a
push 0x45d0e0
lea ecx, [esp + 0x2c]
call fcn.00401e60
jmp 0x405868
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040f0a0
mov edi, dword [esp + 0x28]
cmp dword [edi - 0xc], ebp
jne 0x4058ea
call fcn.0042d67b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40588b
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x78]
push ecx
push str._choice
push 0x470130
mov byte [esp + 0x7c], 9
call fcn.00403330
mov esi, dword [esp + 0x78]
test eax, eax
je 0x4058c9
push esi
call fcn.0043de48
add esp, 4
mov dword [esp + 0x38], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x70], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4058ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, 0x4701f0
call fcn.00401b90
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 0xc]
cmp eax, ebp
jne 0x40591a
push ebp
lea ecx, [esp + 0x38]
call fcn.00401ea0
mov ebp, eax
mov byte [esp + 0x70], 0xa
mov dword [esp + 0x1c], 1
jmp 0x40591e
lea ebp, [esp + 0x24]
mov eax, dword [edi - 0xc]
mov ebx, 0xb
test eax, eax
jne 0x405941
push eax
lea ecx, [esp + 0x7c]
call fcn.00401ea0
mov esi, eax
mov dword [esp + 0x70], ebx
or dword [esp + 0x1c], 2
jmp 0x405945
lea esi, [esp + 0x28]
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.004219d0
mov dword [esp + 0x70], 0xc
mov edx, dword [esi]
mov ecx, dword [ebp]
lea esi, [esp + 0x2c]
push esi
lea esi, [esp + 0x34]
push esi
mov esi, dword [esp + 0x40]
push 0x4701f0
push esi
push ecx
mov ecx, dword [0x4701dc]
push edx
mov edx, dword [0x4701d8]
push ecx
push edx
push eax
call fcn.0042abb0
mov byte [esp + 0x94], bl
add esp, 0x24
lea ecx, [esp + 0x40]
mov ebp, eax
mov dword [esp + 0x3c], vtable.CDataINI.0
call fcn.0042f7a1
mov dword [esp + 0x70], 0xa
mov ebx, dword [esp + 0x1c]
test bl, 2
je 0x4059df
mov eax, dword [esp + 0x78]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, 5
mov dword [esp + 0x70], edi
test bl, 1
je 0x405a14
mov eax, dword [esp + 0x34]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, 0xffffffff
jne 0x405a3a
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], 0
mov esi, dword [0x4701d4]
jne 0x405a30
call fcn.0040f520
jmp 0x405a3a
lea edx, [esp + 0x2c]
push edx
call fcn.0040f630
cmp dword [0x4701e0], 0
je 0x405b61
cmp ebp, 0xffffffff
jne 0x405a53
mov eax, 0x45d0f8
jmp 0x405a95
push 0
push ebp
lea eax, [esp + 0x40]
push eax
push 0x470130
call fcn.004093a0
push eax
lea ecx, [esp + 0x7c]
push str.Yes_for
mov byte [esp + 0x78], 0xd
or ebx, 4
push ecx
mov dword [esp + 0x28], ebx
call fcn.0040ddc0
add esp, 0xc
mov dword [esp + 0x70], 0xe
mov eax, dword [eax]
or ebx, 8
mov dword [esp + 0x1c], ebx
mov edx, dword [0x4701e0]
push eax
push str.Make_Offer:__s
push 1
push edx
call fcn.00417320
add esp, 0x10
mov dword [esp + 0x70], 0xd
test bl, 8
je 0x405ae0
mov eax, dword [esp + 0x78]
and ebx, 0xfffffff7
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ae0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], edi
test bl, 4
je 0x405b09
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405b09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, 0xffffffff
jne 0x405b45
mov ecx, dword [0x4701f0]
mov edx, dword [0x4701e0]
push ecx
push str._t_t_t_t___Reason____s
push 0
push edx
call fcn.00417320
mov eax, dword [esp + 0x40]
mov ecx, dword [0x4701e0]
push eax
push str._t_t_t_t___Failure____s
push 0
push ecx
call fcn.00417320
add esp, 0x20
jmp 0x405b61
mov edx, dword [0x4701f0]
mov eax, dword [0x4701e0]
push edx
push str._t_t_t_t___Reason____s
push 0
push eax
call fcn.00417320
add esp, 0x10
push 0
push str._noreporting
push 0x470130
call fcn.00403330
test eax, eax
jne 0x405c01
mov ax, word [esp + 0x7c]
test ax, ax
je 0x405b97
cmp ebp, 0xffffffff
jne 0x405b91
cmp ax, 1
je 0x405b97
jmp 0x405c01
cmp ax, 2
jne 0x405c01
push 0
lea ecx, [esp + 0x40]
push ecx
call fcn.0041a1c0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x78], 0xf
call fcn.0041a350
lea ecx, [esp + 0x3c]
push ecx
call fcn.0041a3e0
lea edx, [esp + 0x20]
push edx
push str._trgb
push 0x470130
call fcn.00403330
lea eax, [esp + 0x24]
push eax
push ebp
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041b340
lea edx, [esp + 0x3c]
push edx
call fcn.0041a840
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 5
call fcn.0041a290
lea eax, [esp + 0x78]
push eax
call fcn.00420d70
add esp, 4
mov ebx, eax
lea esi, [esp + 0x18]
lea edi, [esp + 0x7c]
mov byte [esp + 0x70], 0x10
call fcn.00420c30
mov esi, eax
mov eax, 0x5c
mov byte [esp + 0x70], 0x11
call fcn.0040e150
mov edx, 0x5c
mov ebx, eax
call fcn.0040e1d0
push eax
push esi
call fcn.0040deb0
mov bl, al
mov byte [esp + 0x78], 0x10
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 5
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x405ca7
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x70], 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8