Function at 0x411d50
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe36
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4926cc]
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 eax, ecx
mov dword [ebp - 0x8c], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90], edi
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x41217b
lea ebx, [eax + 0x5c]
add eax, 0x20
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], eax
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
call fcn.00403fa0
mov dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
call fcn.00403fa0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
call fcn.004200d0
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0xa8]
call fcn.00404040
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x411ed5
cmp word [eax], 0
je 0x411eb9
mov ecx, eax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411e30
mov eax, dword [ebp - 0x20]
sub ecx, edx
sar ecx, 1
add eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], ecx
cmp ecx, eax
jg 0x411e94
mov ebx, 2
cmp eax, ebx
jle 0x411e66
lea ebx, [ebx]
add ebx, ebx
cmp ebx, eax
jl 0x411e60
lea eax, [ebx*2 + 2]
push eax
push dword [ebp - 0x24]
call fcn.00455561
add esp, 8
test eax, eax
je 0x411e91
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x24], eax
mov word [eax + ecx*2], dx
mov eax, ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 1]
push dword [ebp - 0xa8]
push ecx
push dword [ebp - 0x24]
call fcn.004544c5
mov ebx, dword [ebp - 0x7c]
add esp, 0xc
push dword [ebp - 0xa8]
call fcn.004547da
add esp, 4
jmp 0x411ee1
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0xa8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], ebx
call fcn.004547da
add esp, 4
jmp 0x411ee1
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], ebx
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x411ef4
push eax
call fcn.004547da
add esp, 4
lea eax, [ebx + 1]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x78], eax
jle 0x411f07
mov eax, dword [ebp - 0x78]
jmp 0x411f41
mov ebx, 2
cmp eax, ebx
jle 0x411f16
add ebx, ebx
cmp ebx, eax
jl 0x411f10
lea eax, [ebx*2 + 2]
push eax
push dword [ebp - 0x24]
call fcn.00455561
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x411f3e
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x24], ecx
mov word [ecx + eax*2], dx
mov dword [ebp - 0x1c], ebx
lea eax, [ebx + 1]
push 0x4814f0
push eax
push dword [ebp - 0x24]
call fcn.004544c5
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [ebp - 0x20], eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0
call fcn.00404460
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x412005
cmp word [eax], 0
je 0x412005
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f93
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
sub ecx, edx
sar ecx, 1
add eax, ecx
mov dword [ebp - 0x88], eax
cmp ebx, eax
jg 0x411fed
mov ebx, 2
cmp eax, ebx
jle 0x411fc6
lea ecx, [ecx]
add ebx, ebx
cmp ebx, eax
jl 0x411fc0
lea eax, [ebx*2 + 2]
push eax
push dword [ebp - 0x38]
call fcn.00455561
add esp, 8
test eax, eax
je 0x411fec
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dword [ebp - 0x38], eax
mov word [eax + ecx*2], dx
mov dword [ebp - 0x30], ebx
inc ebx
push dword [ebp - 0x74]
push ebx
push dword [ebp - 0x38]
call fcn.004544c5
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0
call fcn.00420400
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x41202f
cmp word [eax], 0
jne 0x412034
mov eax, 0x481274
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
jne 0x41204d
lea ecx, [ebp - 0x60]
call fcn.00422b40
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x41205c
cmp word [eax], 0
mov ecx, eax
jne 0x412061
mov ecx, 0x481274
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x412070
cmp word [ebx], 0
mov eax, ebx
jne 0x412075
mov eax, 0x481274
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x41219e
mov eax, dword [ebp - 0x90]
add dword [ebp - 0x80], 0x64
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x66666667
imul ecx
mov eax, dword [ebp - 0x80]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor edx, edx
div ecx
push eax
mov eax, dword [ebp - 0x8c]
push 0
push 0x467
push dword [eax + 0x54]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4120d6
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4120e6
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4120f6
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x412106
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x412116
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x412126
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x412136
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412146
push eax
call fcn.004547da
add esp, 4
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x41215a
push ebx
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x41216a
push eax
call fcn.004547da
add esp, 4
mov ebx, dword [ebp - 0x84]
add esi, 0x14
cmp esi, edi
jne 0x411db3
mov eax, 1
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.00452ca6
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], eax
test ebx, ebx
je 0x4121dc
cmp word [ebx], 0
je 0x4121dc
sub esp, 8
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0041ac50
mov esi, dword [ebp - 0x40]
add esp, 8
test esi, esi
je 0x4121d7
cmp byte [esi], 0
je 0x4121d7
mov ebx, dword [ebp - 0x4c]
mov edi, esi
jmp 0x4121e4
mov ebx, dword [ebp - 0x4c]
jmp 0x4121df
mov esi, dword [ebp - 0x40]
mov edi, 0x479eb0
mov eax, dword [0x4969d0]
test al, 1
jne 0x412230
or eax, 1
mov dword [0x4969d0], eax
mov byte [ebp - 4], 5
sub esp, 8
mov dword [0x4969ac], 0
mov dword [0x4969b0], 0
mov dword [0x4969b4], 0
call fcn.00401b40
push 0x471ef0
call fcn.00453882
add esp, 4
mov byte [ebp - 4], 4
push edi
push dword [ebp - 0x84]
push str.copy_file_err_errcod___d__file:__s
push str.UpdateMgr
push 0xfb
push str.managerUpdateMgr.cpp
push 4
push 0x496990
call fcn.00402130
mov ecx, dword [ebp - 0x8c]
add esp, 0x20
call fcn.004136a0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x412275
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x412285
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x412295
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4122a5
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4122b5
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4122c5
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4122d5
push eax
call fcn.004547da
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4122e5
push eax
call fcn.004547da
add esp, 4
test ebx, ebx
je 0x4122f2
push ebx
call fcn.004547da
add esp, 4
test esi, esi
je 0x4122ff
push esi
call fcn.004547da
add esp, 4
xor eax, eax
jmp 0x412180