Function at 0x405c90
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4ef3b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
mov ebp, ecx
push esi
lea esi, [ebp + 8]
push edi
mov ecx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], esi
call fcn.00401300
xor edi, edi
lea ecx, [ebp + 0x44]
mov dword [esp + 0x40], edi
call fcn.004050a0
lea eax, [esp + 0x24]
push eax
call fcn.00481390
push str.DataChannel_
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x50], 1
call fcn.00401e30
add esp, 0x10
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x40], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405d12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.00485790
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00485ff0
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
add esp, 8
cmp eax, edi
mov dword [esp + 0x18], edi
jbe 0x405f99
mov dword [esp + 0x1c], edi
push ebx
cmp dword [esp + 0x1c], eax
jae 0x405d53
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
add esi, dword [esp + 0x20]
jmp 0x405d55
xor esi, esi
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
mov byte [esp + 0x44], 4
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x44], 5
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
test esi, esi
mov byte [esp + 0x44], 6
jne 0x405db8
xor eax, eax
jmp 0x405dc9
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405dc0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00401880
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s_s_
push edx
call fcn.00401c40
mov ebx, dword [esp + 0x34]
push ebx
lea eax, [esp + 0x4c]
push str._sRight.mht
push eax
call fcn.00401c40
mov esi, dword [esi + 0x28]
add esp, 0x1c
push esi
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebp
call fcn.00405860
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
mov byte [esp + 0x44], 7
je 0x405e73
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x405e61
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x405e61
push eax
call fcn.00401660
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x405e54
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea edi, [ebp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jmp 0x405e73
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401880
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebx
call fcn.00485ff0
lea eax, [esp + 0x3c]
push eax
call fcn.004857a0
mov eax, dword [edi - 0xc]
add esp, 8
test eax, eax
je 0x405ef3
mov ecx, dword [esp + 0x38]
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x405ef3
mov esi, dword [ebp + 0x48]
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x44]
lea edx, [esp + 0x34]
push edx
push eax
push esi
call fcn.00404940
mov ecx, dword [esp + 0x18]
push 1
add ecx, 0x44
mov ebp, eax
call fcn.004049d0
mov dword [esi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
mov ebp, dword [esp + 0x18]
lea eax, [ebx - 0x10]
mov byte [esp + 0x44], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x44], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x44], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
inc ecx
add esi, 0x2c
cmp ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
jb 0x405d40
mov esi, dword [esp + 0x30]
pop ebx
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fbc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x40], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret 4