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

Disassembly:
mov eax, 0x465174
call fcn.00452ab4
sub esp, 0xb8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.0041acc8
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
mov ebx, dword [ebp + 8]
add ebx, 4
mov dword [ebp - 4], esi
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp + 0xc]
lea esi, [ebx + 0x18]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042dada
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x420dd2
push dword [ebp + 0xc]
push esi
call fcn.0042da3f
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov esi, eax
mov ecx, esi
call fcn.0041af25
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 - 0x38]
call fcn.0041b413
xor al, al
jmp 0x42101c
lea edi, [ecx + 0x28]
lea esi, [ebp - 0x38]
call fcn.0042102d
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x1c], 0
je 0x420df5
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b413
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp + 0xc]
lea esi, [ebx + 0x18]
lea edi, [ebp + 0x14]
mov dword [ebp - 4], 2
call fcn.0042dada
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebp + 0x14]
cmp esi, eax
je 0x42100f
add esi, 0x28
cmp byte [esi + 0x20], 0
je 0x42100f
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x420e48
mov eax, dword [edi]
jmp 0x420e4a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42100f
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 0x10
jb 0x420e67
mov eax, dword [ebx + 4]
jmp 0x420e6a
lea eax, [ebx + 4]
cmp dword [esi + 0x18], 0x10
jb 0x420e72
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x42100f
push esi
lea ecx, [ebp - 0x54]
call fcn.0041c33e
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0041c33e
mov edi, str..html
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0041c1c2
mov esi, str..mht
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x10], 1
call fcn.0041c1c2
push 3
pop ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 6
push eax
mov dword [ebp - 0x10], ebx
call fcn.0044e050
add esp, 0xc
test eax, eax
je 0x420f57
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x420efc
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420f57
push edi
lea ecx, [ebp - 0xa8]
call fcn.0041c1c2
push 7
pop eax
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
call fcn.0041c1c2
push 0xf
pop ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 8
push eax
mov dword [ebp - 0x10], ebx
call fcn.0044e050
add esp, 0xc
test eax, eax
mov byte [ebp + 0x17], 1
jne 0x420f5b
mov byte [ebp + 0x17], 0
xor esi, esi
test bl, 8
je 0x420f73
push esi
push 1
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffff7
call fcn.0041b413
test bl, 4
je 0x420f89
push esi
push 1
lea ecx, [ebp - 0xa8]
and ebx, 0xfffffffb
call fcn.0041b413
test bl, 2
je 0x420f9f
push esi
push 1
lea ecx, [ebp - 0x8c]
and ebx, 0xfffffffd
call fcn.0041b413
test bl, 1
mov dword [ebp - 4], 4
je 0x420fb6
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b413
cmp byte [ebp + 0x17], 0
je 0x420fe8
cmp dword [ebp - 0x58], 0x10
mov ecx, dword [ebp - 0x6c]
jae 0x420fc8
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x420fd4
lea eax, [ebp - 0x50]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push dword [ebp + 8]
lea edi, [ebp - 0x70]
call fcn.00421813
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004210b0
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.0041b413
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.0041b413
mov bl, 1
jmp 0x421011
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