Function at 0x45e4d0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d84e6
push eax
mov eax, 0x1880
mov dword fs:[0], esp
call fcn.004d3780
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 [0x4eb4c0]
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 0x4eb504
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 0x45e5da
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 0x45e633
lea eax, [esp + 0x848]
push eax
call fcn.004a1470
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 0x45e633
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x45e5fb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
push ebx
lea ecx, [esp + 0x18]
call fcn.004076f0
test eax, eax
je 0x45e631
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 0x45e641
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 [0x4eb4c0]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1898], 1
cmp eax, ebx
je 0x45ea09
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x45e76e
mov ebp, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5c
push eax
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x45e6a1
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 0x45e76e
push esi
push 0x4eb504
lea edx, [esp + 0x30]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [esp + 0x38]
push eax
call fcn.0045e480
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 0x45e866
push ebx
lea ecx, [esp + 0x234]
push 0x104
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0045ea90
lea edx, [esp + 0x230]
push edx
call fcn.004a7f30
add esp, 4
lea eax, [esp + 0x28]
lea ecx, [esp + 0x230]
lea edx, [esp + 0x10]
push eax
push ecx
push 0x4ec998
push edx
call fcn.00410bd0
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.004a7ab0
add esp, 0x18
test eax, eax
je 0x45e779
mov eax, dword [0x6c4980]
sub eax, ebx
je 0x45e808
dec eax
je 0x45e779
dec eax
je 0x45e866
cmp dword [esp + 0x18], 3
je 0x45e9a6
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 0x45e7aa
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 0x45e7b8
cmp ebx, dword [eax - 4]
jle 0x45e7cb
mov ecx, ebp
call fcn.00407610
push ebx
mov ecx, ebp
call fcn.00407580
test eax, eax
je 0x45e7f4
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 0x45ea09
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push 0x103
push ecx
push ebx
push edx
call fcn.004a8450
add esp, 0x10
test eax, eax
je 0x45e779
lea eax, [esp + 0x28]
test eax, eax
jne 0x45e834
xor ebp, ebp
jmp 0x45e841
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
push ebp
lea ecx, [esp + 0x14]
call fcn.004076f0
test eax, eax
je 0x45e779
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x28]
jmp 0x45e984
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 [0x6dcf80]
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 [0x6dcf80]
lea edx, [esp + 0x438]
push 0x104
push edx
push 0x63
push eax
call esi
lea ecx, [esp + 0x438]
push ecx
call fcn.004a8150
lea edx, [esp + 0x2c]
push 0x2e
push edx
call ebp
add esp, 0xc
cmp eax, ebx
je 0x45e8f1
add eax, 2
jmp 0x45e8f6
mov eax, 0x4ffec0
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 [0x68f38c]
lea ecx, [esp + 0x654]
push eax
mov eax, dword [0x6dcf84]
push ecx
push edx
push eax
call fcn.004a8300
add esp, 0x24
test eax, eax
je 0x45e9a6
lea ecx, [esp + 0x28]
test ecx, ecx
jne 0x45e93f
xor ebp, ebp
jmp 0x45e94c
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 0x45e95b
cmp ebp, dword [edi - 4]
jle 0x45e97a
lea ecx, [esp + 0x10]
call fcn.00407610
push ebp
lea ecx, [esp + 0x14]
call fcn.00407580
cmp eax, ebx
je 0x45e779
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 0x45e779
mov eax, dword [esp + 0x10]
mov edx, dword [0x4eb24c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45e9d7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45e9d7
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ea02
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ea02
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov eax, 3
jmp 0x45ea69
mov eax, dword [esp + 0x10]
mov edx, dword [0x4eb24c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ea3a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ea3a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45ea65
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x45ea65
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d3765
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