Function at 0x45fa00
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d9a86
push eax
mov eax, 0x1880
mov dword fs:[0], esp
call fcn.004d4ce0
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x84a]
mov word [esp + 0x848], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ed0fc]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 8]
lea edx, [esp + 0x848]
push ecx
push 0x4ed128
push 0x823
push edx
mov dword [esp + 0x18a8], ebx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 8]
mov esi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
call esi
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x20]
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x848]
push eax
push ebp
push ecx
call esi
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x45fb0a
push 8
lea edx, [esp + 0x84c]
push str.file:___
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x45fb63
lea eax, [esp + 0x848]
push eax
call fcn.004a28e0
lea ecx, [esp + 0x85c]
add esp, 4
mov dword [ebp + 8], ecx
mov dword [esp + 0x18], 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x45fb63
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x45fb2b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x18]
call fcn.004066f0
test eax, eax
je 0x45fb61
mov edi, dword [esp + 0x14]
lea eax, [ebx + ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
mov edx, dword [esp + 0x14]
mov word [eax + edx], 0
xor ebx, ebx
cmp ebp, ebx
je 0x45fb71
push ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4ed0fc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1898], 1
cmp eax, ebx
je 0x45ff39
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x45fc9e
mov ebp, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5c
push eax
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x45fbd1
mov ecx, dword [esp + 0x14]
push 0x2f
push ecx
call ebp
add esp, 8
mov esi, eax
add esi, 2
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x45fc9e
push esi
push 0x4ed128
lea edx, [esp + 0x30]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x38]
push eax
call fcn.0045f9b0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x246]
mov word [esp + 0x244], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x18b4]
add esp, 0x14
cmp eax, ebx
jne 0x45fd96
push ebx
lea ecx, [esp + 0x234]
push 0x104
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0045ffc0
lea edx, [esp + 0x230]
push edx
call fcn.004a9280
add esp, 4
lea eax, [esp + 0x28]
lea ecx, [esp + 0x230]
lea edx, [esp + 0x10]
push eax
push ecx
push 0x4ee3cc
push edx
call fcn.0040fdb0
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.004a8e00
add esp, 0x18
test eax, eax
je 0x45fca9
mov eax, dword [0x727918]
sub eax, ebx
je 0x45fd38
dec eax
je 0x45fca9
dec eax
je 0x45fd96
cmp dword [esp + 0x18], 3
je 0x45fed6
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x28]
test eax, eax
lea ebp, [edx + 0xc]
je 0x45fcda
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [ebp]
cmp dword [eax - 0xc], 1
jg 0x45fce8
cmp ebx, dword [eax - 4]
jle 0x45fcfb
mov ecx, ebp
call fcn.00406610
push ebx
mov ecx, ebp
call fcn.00406580
test eax, eax
je 0x45fd24
mov edi, dword [ebp]
lea eax, [ebx + ebx]
mov ecx, eax
lea esi, [esp + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov dword [ecx - 8], ebx
mov edx, dword [ebp]
mov word [eax + edx], 0
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x20], eax
jmp 0x45ff39
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 0x103
push ecx
push ebx
push edx
call fcn.004a97a0
add esp, 0x10
test eax, eax
je 0x45fca9
lea eax, [esp + 0x28]
test eax, eax
jne 0x45fd64
xor ebp, ebp
jmp 0x45fd71
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004066f0
test eax, eax
je 0x45fca9
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x28]
jmp 0x45feb4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x43a]
mov word [esp + 0x438], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x642]
mov word [esp + 0x640], bx
rep stosd dword es:[edi], eax
mov ecx, dword [0x73ff28]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
stosw word es:[edi], ax
lea eax, [esp + 0x640]
push 0x104
push eax
push 0x5c
push ecx
call esi
mov eax, dword [0x73ff28]
lea edx, [esp + 0x438]
push 0x104
push edx
push 0x63
push eax
call esi
lea ecx, [esp + 0x438]
push ecx
call fcn.004a94a0
lea edx, [esp + 0x2c]
push 0x2e
push edx
call ebp
add esp, 0xc
cmp eax, ebx
je 0x45fe21
add eax, 2
jmp 0x45fe26
mov eax, 0x500df0
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push ebx
push 0x80c02
push eax
lea eax, [esp + 0x448]
push edx
mov edx, dword [0x6f287c]
lea ecx, [esp + 0x654]
push eax
mov eax, dword [0x73ff2c]
push ecx
push edx
push eax
call fcn.004a9650
add esp, 0x24
test eax, eax
je 0x45fed6
lea ecx, [esp + 0x28]
test ecx, ecx
jne 0x45fe6f
xor ebp, ebp
jmp 0x45fe7c
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x45fe8b
cmp ebp, dword [edi - 4]
jle 0x45feaa
lea ecx, [esp + 0x10]
call fcn.00406610
push ebp
lea ecx, [esp + 0x14]
call fcn.00406580
cmp eax, ebx
je 0x45fca9
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
lea esi, [esp + 0x28]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], bx
jmp 0x45fca9
mov eax, dword [esp + 0x10]
mov edx, dword [0x4ed100]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ff07
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ff07
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ff32
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ff32
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, 3
jmp 0x45ff99
mov eax, dword [esp + 0x10]
mov edx, dword [0x4ed100]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ff6a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ff6a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ff95
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ff95
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1890]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x188c
ret 4