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

Disassembly:
mov eax, 0x45ced0
call fcn.0044b154
sub esp, 0xb8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esi
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00418c41
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 0x70], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x10]
call fcn.004298ce
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x41dc03
push dword [ebp + 0xc]
push esi
call fcn.00429835
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov esi, eax
mov ecx, esi
call fcn.00418bb2
mov eax, dword [ebp + 0x14]
push ebx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004192fd
xor al, al
jmp 0x41de40
lea edi, [ecx + 0x28]
lea esi, [ebp - 0x34]
call fcn.0041de51
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x18], 0
je 0x41dc26
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.004192fd
push ebx
mov dword [ebp + 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
lea esi, [ebx + 0x18]
lea edi, [ebp + 0xc]
call fcn.004298ce
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, eax
je 0x41de33
add esi, 0x28
cmp byte [esi + 0x20], 0
je 0x41de33
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x41dc79
mov eax, dword [edi]
jmp 0x41dc7b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41de33
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 0x10
jb 0x41dc98
mov eax, dword [ebx + 4]
jmp 0x41dc9b
lea eax, [ebx + 4]
cmp dword [esi + 0x18], 0x10
jb 0x41dca3
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x41de33
push esi
lea ecx, [ebp - 0x50]
call fcn.0041a15f
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 3
call fcn.0041a15f
mov edi, str..html
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00419fe3
mov esi, str..mht
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x10], 1
call fcn.00419fe3
push 3
pop ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x10], ebx
call fcn.00446d10
add esp, 0xc
test eax, eax
je 0x41dd88
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x41dd2d
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41dd88
push edi
lea ecx, [ebp - 0x8c]
call fcn.00419fe3
push 7
pop eax
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
call fcn.00419fe3
push 0xf
pop ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 8
push eax
mov dword [ebp - 0x10], ebx
call fcn.00446d10
add esp, 0xc
test eax, eax
mov byte [ebp + 0xf], 1
jne 0x41dd8c
mov byte [ebp + 0xf], 0
xor esi, esi
test bl, 8
je 0x41dda4
push esi
push 1
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffff7
call fcn.004192fd
test bl, 4
je 0x41ddba
push esi
push 1
lea ecx, [ebp - 0x8c]
and ebx, 0xfffffffb
call fcn.004192fd
test bl, 2
je 0x41ddd0
push esi
push 1
lea ecx, [ebp - 0xa8]
and ebx, 0xfffffffd
call fcn.004192fd
test bl, 1
mov dword [ebp - 4], 4
je 0x41dde7
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004192fd
cmp byte [ebp + 0xf], 0
je 0x41de19
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
jae 0x41ddf9
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x41de05
lea eax, [ebp - 0x4c]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push dword [ebp + 8]
lea edi, [ebp - 0x6c]
call fcn.0041e491
push esi
push 1
lea ecx, [ebp - 0x6c]
call fcn.004192fd
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.004192fd
mov bl, 1
jmp 0x41de35
xor bl, bl
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10