Function at 0x45d410
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4f917b
push eax
mov eax, 0x1a84
mov dword fs:[0], esp
call fcn.004ba380
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0xa4e]
mov word [esp + 0xa4c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x50f11c]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 4]
lea edx, [esp + 0xa4c]
push ecx
push 0x50f4e4
push 0x823
push edx
mov dword [esp + 0x1aac], ebp
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 4]
mov esi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
add esp, 0x10
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
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 + 0x18]
lea ecx, [esp + 0xa4c]
push eax
push ebx
push ecx
call esi
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x45d51e
push 8
lea edx, [esp + 0xa50]
push str.file:___
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x45d590
lea eax, [esp + 0xa4c]
push eax
call fcn.004120e0
lea ecx, [esp + 0xa60]
add esp, 4
mov dword [ebx + 8], ecx
mov dword [esp + 0x14], 1
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x45d590
mov esi, dword [ebx + 8]
cmp esi, ebp
je 0x45d53f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x45d54e
cmp ebp, dword [edi - 4]
jle 0x45d569
lea ecx, [esp + 0x10]
call fcn.00406430
push ebp
lea ecx, [esp + 0x14]
call fcn.00406280
test eax, eax
je 0x45d58e
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
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], 0
xor ebp, ebp
cmp ebx, ebp
je 0x45d59e
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x14], ebp
je 0x45d905
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
je 0x45d6f9
mov ebx, dword [sym.imp.MSVCRT.dll_wcsrchr]
push 0x5c
push eax
call ebx
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x45d605
mov eax, dword [esp + 0x10]
push 0x2f
push eax
call ebx
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 0x45d6f9
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x50f4e4
lea ecx, [esp + 0x2c]
push 0x103
push ecx
call esi
lea edx, [esp + 0x34]
push edx
call fcn.0045d3c0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x44a]
mov word [esp + 0x448], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x1abc]
add esp, 0x14
cmp eax, ebp
jne 0x45d7e6
mov ecx, dword [esp + 0x1c]
push ebp
lea eax, [esp + 0x438]
push 0x104
push eax
call fcn.0045da30
lea ecx, [esp + 0x434]
push 1
push ecx
call fcn.0042be80
lea edx, [esp + 0x43c]
push edx
call fcn.0042c110
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x434]
lea edx, [esp + 0x22c]
push eax
push ecx
push 0x50f5ec
push 0x103
push edx
call esi
lea eax, [esp + 0x240]
push ebp
push eax
call fcn.0042be80
lea ecx, [esp + 0x248]
push ebp
push ecx
call fcn.0042b850
add esp, 0x24
test eax, eax
je 0x45d704
mov eax, dword [0x6d3878]
sub eax, ebp
je 0x45d7be
dec eax
je 0x45d704
dec eax
je 0x45d7e6
cmp dword [esp + 0x14], 3
je 0x45d8cf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x22c]
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
test eax, eax
lea ebx, [edx + 8]
je 0x45d738
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, 1
jg 0x45d74a
cmp ebp, dword [eax - 4]
jle 0x45d783
mov edx, dword [0x50f0b0]
add eax, 0xfffffff4
cmp eax, edx
je 0x45d777
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45d770
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.004ba355
add esp, 4
mov eax, dword [0x50f11c]
mov dword [ebx], eax
push ebp
mov ecx, ebx
call fcn.00406280
test eax, eax
je 0x45d7aa
mov edi, dword [ebx]
lea eax, [ebp + ebp]
mov ecx, eax
lea esi, [esp + 0x24]
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 [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp + 0x20], eax
jmp 0x45d905
lea edx, [esp + 0x24]
push 0x103
push edx
lea eax, [esp + 0x234]
push ebp
push eax
call fcn.0042c630
add esp, 0x10
test eax, eax
je 0x45d704
jmp 0x45d8b4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x63e]
mov word [esp + 0x63c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x846]
mov word [esp + 0x844], bp
rep stosd dword es:[edi], eax
mov ecx, dword [0x6069d8]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
stosw word es:[edi], ax
lea eax, [esp + 0x844]
push 0x104
push eax
push 0x19
push ecx
call esi
mov eax, dword [0x6069d8]
lea edx, [esp + 0x63c]
push 0x104
push edx
push 0x1a
push eax
call esi
lea ecx, [esp + 0x63c]
push ecx
call fcn.0042c330
lea edx, [esp + 0x28]
push 0x2e
push edx
call ebx
add esp, 0xc
cmp eax, ebp
je 0x45d871
add eax, 2
jmp 0x45d876
mov eax, 0x52a480
lea ecx, [esp + 0x434]
lea edx, [esp + 0x24]
push ecx
push ebp
push 0x80c02
push eax
lea eax, [esp + 0x64c]
push edx
mov edx, dword [esp + 0x1ab8]
lea ecx, [esp + 0x858]
push eax
mov eax, dword [0x6069dc]
push ecx
push edx
push eax
call fcn.0042c4e0
add esp, 0x24
test eax, eax
je 0x45d8cf
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x45d704
mov eax, dword [esp + 0x10]
mov edx, dword [0x50f0b0]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45d8fe
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45d8fe
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004ba355
add esp, 4
mov eax, 3
jmp 0x45d938
mov eax, dword [esp + 0x10]
mov edx, dword [0x50f0b0]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x45d934
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x45d934
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004ba355
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1a94]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a90
ret 8