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

Disassembly:
mov eax, 0x464c04
call fcn.00452544
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.0041a911
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.0042d56e
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jne 0x420a1b
push dword [ebp + 0xc]
push esi
call fcn.0042d4d3
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov esi, eax
mov ecx, esi
call fcn.0041ab6e
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.0041b05c
xor al, al
jmp 0x420c65
lea edi, [ecx + 0x28]
lea esi, [ebp - 0x38]
call fcn.00420c76
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 0x1c], 0
je 0x420a3e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b05c
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.0042d56e
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebp + 0x14]
cmp esi, eax
je 0x420c58
add esi, 0x28
cmp byte [esi + 0x20], 0
je 0x420c58
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x420a91
mov eax, dword [edi]
jmp 0x420a93
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420c58
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x18], 0x10
jb 0x420ab0
mov eax, dword [ebx + 4]
jmp 0x420ab3
lea eax, [ebx + 4]
cmp dword [esi + 0x18], 0x10
jb 0x420abb
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x420c58
push esi
lea ecx, [ebp - 0x54]
call fcn.0041bf87
push ebx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0041bf87
mov edi, str..html
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0041be0b
mov esi, str..mht
mov byte [ebp - 4], 5
push esi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x10], 1
call fcn.0041be0b
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.0044dae0
add esp, 0xc
test eax, eax
je 0x420ba0
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x420b45
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x420ba0
push edi
lea ecx, [ebp - 0xa8]
call fcn.0041be0b
push 7
pop eax
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x10], eax
call fcn.0041be0b
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.0044dae0
add esp, 0xc
test eax, eax
mov byte [ebp + 0x17], 1
jne 0x420ba4
mov byte [ebp + 0x17], 0
xor esi, esi
test bl, 8
je 0x420bbc
push esi
push 1
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffff7
call fcn.0041b05c
test bl, 4
je 0x420bd2
push esi
push 1
lea ecx, [ebp - 0xa8]
and ebx, 0xfffffffb
call fcn.0041b05c
test bl, 2
je 0x420be8
push esi
push 1
lea ecx, [ebp - 0x8c]
and ebx, 0xfffffffd
call fcn.0041b05c
test bl, 1
mov dword [ebp - 4], 4
je 0x420bff
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b05c
cmp byte [ebp + 0x17], 0
je 0x420c31
cmp dword [ebp - 0x58], 0x10
mov ecx, dword [ebp - 0x6c]
jae 0x420c11
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x420c1d
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.0042145c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00420cf9
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.0041b05c
push esi
push 1
lea ecx, [ebp - 0x54]
call fcn.0041b05c
mov bl, 1
jmp 0x420c5a
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