Function at 0x41d380
Capabilities:
Copy file
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b83e
mov eax, dword fs:[0]
push eax
mov eax, 0x5058
call fcn.00527810
mov eax, dword [0x599690]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5050], ecx
lea eax, [ebp - 0x5028]
push eax
call fcn.00420940
add esp, 4
mov dword [ebp - 0x5054], eax
mov ecx, dword [ebp - 0x5054]
mov dword [ebp - 0x5058], ecx
mov dword [ebp - 4], 0
push str.TBBrowserDownloadCfg.ini
mov edx, dword [ebp - 0x5058]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00409d80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5028]
call fcn.004049f0
mov ecx, dword [ebp - 0x5050]
cmp dword [ecx + 0x90], 0
je 0x41d4a7
mov edx, dword [ebp - 0x5050]
add edx, 0x88
push ecx
mov ecx, esp
mov dword [ebp - 0x502c], esp
push edx
call fcn.0040a2e0
mov dword [ebp - 0x505c], eax
mov ecx, dword [ebp - 0x5050]
add ecx, 0xd0
call fcn.00414150
mov dword [ebp - 0x5060], eax
cmp dword [ebp - 0x5060], 0
je 0x41d4a2
push 0
lea ecx, [ebp - 0x10]
call fcn.004065e0
push eax
mov ecx, dword [ebp - 0x5050]
add ecx, 0x88
call fcn.004065e0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x5050]
cmp dword [eax + 0xb8], 0
jne 0x41d4a2
mov ecx, dword [ebp - 0x5050]
add ecx, 0x88
call fcn.004065e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41d5d4
mov ecx, dword [ebp - 0x5050]
cmp dword [ecx + 0xb8], 0
jne 0x41d4ce
mov ecx, dword [ebp - 0x5050]
add ecx, 0x88
call fcn.004065e0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x2800
push 0
lea edx, [ebp - 0x2814]
push edx
call fcn.00523530
add esp, 0xc
mov eax, dword [ebp - 0x5050]
mov ecx, dword [eax + 0x80]
push ecx
push str.OnDownloadFinish_ConfigFile___FAILED___s
push 0x27ff
lea edx, [ebp - 0x2814]
push edx
call fcn.0041ba10
add esp, 0x10
lea eax, [ebp - 0x2824]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x2800
push 0
lea ecx, [ebp - 0x5024]
push ecx
call fcn.00523530
add esp, 0xc
lea edx, [ebp - 0x2814]
push edx
movzx eax, word [ebp - 0x2818]
push eax
movzx ecx, word [ebp - 0x281a]
push ecx
movzx edx, word [ebp - 0x281c]
push edx
movzx eax, word [ebp - 0x281e]
push eax
movzx ecx, word [ebp - 0x2822]
push ecx
movzx edx, word [ebp - 0x2824]
push edx
push 0x57501c
push 0x27ff
lea eax, [ebp - 0x5024]
push eax
call fcn.0041ba10
add esp, 0x28
lea ecx, [ebp - 0x5024]
push ecx
push 0x575044
call fcn.00522b8c
add esp, 8
lea edx, [ebp - 0x5024]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x5024]
push eax
lea ecx, [ebp - 0x5048]
call fcn.00401980
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5048]
push ecx
mov ecx, 0x5a0ff8
call fcn.004053d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5048]
call fcn.00402110
lea edx, [ebp - 0x10]
push edx
call fcn.00420d40
add esp, 4
test eax, eax
je 0x41d609
push ecx
mov ecx, esp
mov dword [ebp - 0x504c], esp
lea eax, [ebp - 0x10]
push eax
call fcn.0040a2e0
mov dword [ebp - 0x5064], eax
mov ecx, dword [ebp - 0x5050]
call fcn.0041d650
jmp 0x41d61c
mov ecx, dword [ebp - 0x5050]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x5050]
mov eax, dword [edx + 0x60]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004049f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00520c7a
mov esp, ebp
pop ebp
ret