Function at 0x40d680
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4225a6
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push ebp
mov ebp, dword [esp + 0x438]
push esi
xor esi, esi
push edi
cmp ebp, esi
je 0x40d889
mov ebx, dword [esp + 0x444]
cmp ebx, esi
je 0x40d889
mov eax, dword [0x42b334]
mov ecx, dword [0x42b338]
cmp eax, ecx
jne 0x40d8b9
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
push str.favicon.ico
mov ecx, 0x42a8b8
stosw word es:[edi], ax
call fcn.004020e0
push eax
push 0x428240
lea ecx, [esp + 0x28]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x30]
push esi
push edx
call fcn.0040dad0
add esp, 0x1c
test eax, eax
jne 0x40d80e
mov eax, dword [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0040d3c0
add esp, 8
mov edx, dword [esp + 0x14]
mov dword [esp + 0x434], esi
cmp dword [edx - 8], esi
je 0x40d7d8
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x448]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x224]
push eax
mov eax, dword [esp + 0x450]
push ecx
mov ecx, dword [esp + 0x458]
push esi
push eax
push ecx
push 0xbb8
push edi
push 0x42e49c
push 1
push 0x42996c
push esi
push edx
mov dword [esp + 0x40], 8
call fcn.0040f540
add esp, 0x30
cmp edi, esi
je 0x40d85a
cmp dword [esp + 0x10], 7
jne 0x40d85a
lea edx, [esp + 0x1c]
push esi
lea eax, [esp + 0x228]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x428074]
lea eax, [edx - 0xc]
cmp eax, ecx
mov dword [esp + 0x434], 0xffffffff
je 0x40d80e
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d80e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call fcn.00421de0
add esp, 4
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.0040dad0
add esp, 8
test eax, eax
jne 0x40d8a4
mov eax, dword [0x4961cc]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push 0x20
push 0x20
push 1
push 0x65
push eax
call esi
push 0
push 0x10
mov dword [ebp], eax
mov ecx, dword [0x4961cc]
push 0x10
push 1
push 0x65
push ecx
call esi
mov dword [ebx], eax
xor esi, esi
jmp 0x40d9ee
mov eax, dword [esp + 0x14]
mov edx, dword [0x428074]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40d889
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d889
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00421de0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x428
ret
push 1
push ebx
push ebp
lea edx, [esp + 0x28]
push esi
push edx
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
jmp 0x40d9ee
mov eax, dword [esp + 0x43c]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0040d3c0
add esp, 8
mov edx, dword [esp + 0x10]
mov dword [esp + 0x434], 1
cmp dword [edx - 8], esi
je 0x40d9c3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x226]
mov word [esp + 0x224], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x448]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x224]
push eax
mov eax, dword [esp + 0x450]
push ecx
mov ecx, dword [esp + 0x458]
push esi
push eax
push ecx
push 0xbb8
push edi
push 0x42e49c
push 1
push 0x42996c
push esi
push edx
mov dword [esp + 0x48], 8
call fcn.0040f540
add esp, 0x30
cmp edi, esi
je 0x40d98d
cmp dword [esp + 0x18], 7
jne 0x40d98d
mov eax, dword [esp + 0x10]
mov ecx, dword [0x428074]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40d983
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d983
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00421de0
add esp, 4
mov eax, 1
jmp 0x40d88b
mov ecx, dword [0x4961cc]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadImageW]
push 0x20
push 0x20
push 1
push 0x65
push ecx
call esi
push 0
push 0x10
mov dword [ebp], eax
mov edx, dword [0x4961cc]
push 0x10
push 1
push 0x65
push edx
call esi
mov edx, dword [esp + 0x10]
mov dword [ebx], eax
xor esi, esi
mov ecx, dword [0x428074]
lea eax, [edx - 0xc]
cmp eax, ecx
je 0x40d9ee
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d9ee
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff4
push ecx
call fcn.00421de0
add esp, 4
cmp dword [ebp], esi
je 0x40d889
cmp dword [ebx], esi
je 0x40d889
mov eax, 1
jmp 0x40d88b