Function at 0x43af00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5533c3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5b4b3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push str.AddIns_third_
lea ecx, [ebp - 0x5c]
call fcn.00433b00
add esp, 4
push str.BCUpgrade.exe
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042cd80
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x43af72
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00427a30
sub esp, 0x18
mov dword [ebp - 0x48], 0xf
mov ecx, esp
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43afa1
mov eax, dword [ecx]
jmp 0x43afa3
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004277e0
call fcn.0042e300
add esp, 0x18
test eax, eax
jne 0x43b056
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.update_not_found__s
push 0
sub esp, 0x18
mov ecx, esp
push 3
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5a4534
mov byte [ecx], 0
call fcn.00427720
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5ba004]
cmp eax, dword [ecx + 4]
jle 0x43b042
push 0x5ba004
call fcn.0052aae3
add esp, 4
cmp dword [0x5ba004], 0xffffffff
jne 0x43b042
call fcn.0042edc0
push 0x5546b0
call fcn.0052ae5a
add esp, 4
push 0x5ba004
call fcn.0052aaa4
add esp, 4
push 0x5ba008
call fcn.0042eea0
add esp, 0x28
xor bl, bl
jmp 0x43b280
push str.BCUpgrade.exe
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00433b00
sub esp, 0x14
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43b086
mov eax, dword [ecx]
jmp 0x43b088
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004277e0
lea ecx, [ebp - 0x8c]
call fcn.0042dc60
mov edi, eax
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x43b0c3
mov eax, dword [ecx]
jmp 0x43b0c5
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.004277e0
lea ecx, [ebp - 0x74]
call fcn.0042dc60
mov ebx, dword [edi + 0x10]
add esp, 0x18
cmp dword [edi + 0x14], 0x10
mov ecx, eax
jb 0x43b0ed
mov edi, dword [edi]
cmp dword [ecx + 0x14], 0x10
mov esi, dword [ecx + 0x10]
jb 0x43b0f8
mov ecx, dword [ecx]
cmp esi, ebx
mov eax, ebx
mov edx, edi
cmovb eax, esi
push eax
call fcn.004266d0
add esp, 4
test eax, eax
jne 0x43b120
cmp esi, ebx
jae 0x43b117
or eax, 0xffffffff
jmp 0x43b11e
xor eax, eax
cmp esi, ebx
setne al
test eax, eax
mov eax, dword [ebp - 0x60]
sete bl
cmp eax, 0x10
jb 0x43b138
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00427a30
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x43b169
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00427a30
test bl, bl
je 0x43b1b0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
push eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.update_file_same__s__s
push 0
sub esp, 0x18
mov ecx, esp
push 0x5a4534
call fcn.004274a0
call fcn.0042ee50
push eax
call fcn.0042eea0
add esp, 0x2c
xor bl, bl
jmp 0x43b259
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x43b21b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x2c], 0x10
push eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
push eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.copy_file_fail__s__s__d
push 0
sub esp, 0x18
mov ecx, esp
push 0x5a4534
call fcn.004274a0
call fcn.0042ee50
push eax
call fcn.0042eea0
add esp, 0x30
xor bl, bl
jmp 0x43b259
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
push eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.update_ok__s__s
push 0
sub esp, 0x18
mov ecx, esp
push 0x5a4534
call fcn.004274a0
call fcn.0042ee50
push eax
call fcn.0042eea0
add esp, 0x2c
mov bl, 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x43b26e
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00427a30
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x43b295
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00427a30
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052a949
mov esp, ebp
pop ebp
ret