Function at 0x4cfe20
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645843
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0x4f4]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
je 0x4d05ea
mov al, byte [ebx + 0x484]
test al, al
jne 0x4d05ea
lea edi, [ebx + 0x3f8]
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4f4], esi
je 0x4d05e3
mov al, byte [ebx + 0x484]
test al, al
jne 0x4d05e3
mov ecx, ebx
call fcn.004e2a00
cmp eax, esi
jne 0x4d05e3
mov eax, dword [ebx + 0x51c]
mov ecx, dword [ebx + 0x258]
cmp eax, esi
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x11]
cmp eax, ecx
jge 0x4d05e3
cmp dword [ebx + 0x4f4], esi
je 0x4d05e3
mov al, byte [ebx + 0x484]
test al, al
jne 0x4d05e3
mov eax, dword [0x6f7b78]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc0], esi
mov word [ebp - 0xc4], si
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb4], esi
mov word [ebp - 0xb8], si
call fcn.004027c0
mov eax, dword [0x6f7b78]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
call fcn.004027c0
mov eax, dword [0x6f7b78]
mov dword [ebp - 0x124], 0x65b4ec
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov edi, dword [ebx + 0x47c]
mov byte [ebp - 4], 1
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x18], edi
cmp edi, dword [ebx + 0xb0]
jge 0x4d0430
lea eax, [ebp - 0x124]
lea esi, [ebx + 8]
push 0
push eax
push edi
mov ecx, esi
call fcn.005fa550
test al, al
je 0x4d0230
cmp byte [ebp - 0xe7], 1
jne 0x4d0230
mov al, byte [ebp - 0xe4]
test al, al
je 0x4d0230
lea ecx, [ebp - 0x124]
push ecx
mov ecx, ebx
call fcn.004d9bf0
test eax, eax
jne 0x4cffef
lea edx, [ebp - 0x124]
mov ecx, ebx
push edx
call fcn.004d9910
test eax, eax
jne 0x4cffef
test edi, edi
jne 0x4d0230
cmp byte [ebp - 0xe8], 3
jne 0x4d0171
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x4d0171
mov ecx, dword [ebx + 0x4ec]
mov eax, dword [ebx + 0x414]
push 0
push 0x1430
inc ecx
push 0x111
push eax
mov byte [ebp - 0xe7], 0
mov byte [ebp - 0xd8], 1
mov dword [ebx + 0x4ec], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x104]
test eax, eax
je 0x4d0053
mov al, byte [ebx + 0x28f]
test al, al
je 0x4d0053
xor esi, esi
jmp 0x4d00c3
mov eax, dword [ebp - 0xc8]
test eax, eax
jne 0x4d0063
lea eax, [ebp - 0xc4]
push 0x5c
push eax
call fcn.00609ba3
add esp, 8
test eax, eax
je 0x4d0077
add eax, 2
jmp 0x4d0087
mov eax, dword [ebp - 0xc8]
test eax, eax
jne 0x4d0087
lea eax, [ebp - 0xc4]
test edi, edi
sete cl
push ecx
push eax
mov ecx, ebx
call fcn.004d56d0
mov esi, eax
test esi, esi
je 0x4d00c3
lea edx, [ebp - 0x124]
mov ecx, ebx
push edx
call fcn.004d9bf0
mov esi, eax
test esi, esi
je 0x4d00c3
lea eax, [ebp - 0x124]
mov ecx, ebx
push eax
call fcn.004d9e60
mov esi, eax
test esi, esi
jne 0x4d00ca
mov byte [ebp - 0xe4], 0
lea ecx, [ebp - 0x124]
push ecx
push edi
lea ecx, [ebx + 8]
call fcn.005fbce0
test esi, esi
je 0x4d00ff
mov eax, dword [ebx + 0x4d8]
mov edx, dword [ebx + 0x414]
inc eax
push eax
push 0x1401
push 0x111
mov dword [ebx + 0x4d8], eax
push edx
jmp 0x4d0111
mov eax, dword [ebx + 0x414]
push edi
push 0x13fe
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebx + 0x54c]
push edi
push 0
push 0x140e
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x258]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x4d0230
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x124]
mov dword [ebx + 0x47c], edi
mov byte [ebp - 4], 0
call fcn.00483aa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x124]
mov ecx, esi
push eax
push edi
mov byte [ebp - 0xe7], 2
call fcn.005fbce0
mov eax, dword [0x6f7b78]
xor esi, esi
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x50], esi
mov word [ebp - 0x54], si
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0x5c]
push 1
push ecx
push edx
push eax
lea ecx, [ebx + 0x2f8]
mov byte [ebp - 4], 2
call fcn.00423740
cmp eax, esi
je 0x4d03ee
mov al, byte [ebp - 0x2b]
test al, al
je 0x4d03ee
lea ecx, [ebp - 0x124]
push 1
push ecx
push edi
mov ecx, ebx
call fcn.004e0980
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x4d023b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00622d8a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00622d8a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00622d8a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00622d8a
inc edi
xor esi, esi
mov dword [ebp - 0x18], edi
jmp 0x4cff80
mov edx, dword [ebx + 0x4b0]
push edi
push edx
push 0
lea ecx, [esi + 0x20]
call fcn.005dfb60
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x4d0257
lea eax, [ebp - 0x54]
mov ecx, dword [esi + 0x50]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4d03ee
mov edx, dword [ebp - 0x48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d0292
push edx
lea edx, [esi + 0xe4]
push 0x6c910c
push edx
call fcn.0061fae1
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [esi + 0xa74], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x4a8], ecx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x4ac], edx
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x8fc], eax
mov edx, dword [ebp - 0x4c]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4d0307
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00622acb
mov ecx, dword [ebp - 0x24]
mov edx, eax
xor eax, eax
add esp, 4
mov dword [ecx + 0xdc], edx
mov edi, dword [ebp - 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x24]
mov ecx, dword [0x6fcb2c]
push esi
mov byte [ebp - 0xdb], 1
call fcn.0051a290
push 0
mov ecx, esi
call fcn.005cf6a0
push esi
call fcn.004af700
mov ecx, dword [0x6fcc10]
mov byte [esi + 0xa78], 1
mov dword [esi], ecx
mov al, byte [ebx + 0x290]
add esp, 4
test al, al
je 0x4d0370
mov eax, dword [ebx + 0x4e0]
mov edx, dword [ebx + 0x4b0]
mov edi, dword [ebp - 0x18]
inc eax
mov byte [ebp - 0xda], 1
mov dword [ebx + 0x4e0], eax
mov dword [esi + 0xa88], edx
mov dword [esi + 0xa8c], edi
jmp 0x4d0373
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x124]
lea ecx, [ebx + 8]
push eax
push edi
call fcn.005fbce0
push edi
mov ecx, ebx
call fcn.004d91c0
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x4d0395
lea eax, [ebp - 0x54]
push eax
push 0
push edi
mov ecx, ebx
call fcn.004d2b10
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.00622d8a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.00622d8a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00622d8a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00622d8a
mov edi, dword [ebp - 0x18]
inc edi
xor esi, esi
mov dword [ebp - 0x18], edi
jmp 0x4cff80
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00622d8a
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.00622d8a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00622d8a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00622d8a
xor esi, esi
mov al, byte [ebp + 0xb]
mov dword [ebx + 0x47c], edi
test al, al
jne 0x4d0500
mov edi, dword [ebx + 0x480]
cmp edi, dword [ebx + 0xb0]
jge 0x4d04f9
lea edx, [ebp - 0x124]
push esi
push edx
lea ecx, [ebx + 8]
push edi
call fcn.005fa550
test al, al
je 0x4d04f3
cmp byte [ebp - 0xe7], 3
jne 0x4d04f3
mov al, byte [ebp - 0xe4]
test al, al
jne 0x4d0483
cmp edi, esi
jne 0x4d04f3
lea eax, [ebp - 0x124]
mov ecx, ebx
push eax
call fcn.004d9bf0
cmp eax, esi
jne 0x4d04ab
lea ecx, [ebp - 0x124]
push ecx
mov ecx, ebx
call fcn.004d9910
cmp eax, esi
jne 0x4d04ab
cmp edi, esi
jne 0x4d04f3
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ecx - 8]
cmp eax, esi
jle 0x4d04d4
mov cl, byte [eax + ecx - 1]
cmp cl, 0x27
je 0x4d04c6
cmp cl, 0x22
jne 0x4d04d4
dec eax
push esi
push eax
lea ecx, [ebp - 0xd4]
call fcn.006231f6
lea edx, [ebp - 0x124]
lea ecx, [ebx + 8]
push edx
push edi
mov byte [ebp - 0xe7], 5
call fcn.005fbce0
mov dword [ebx + 0x480], edi
jmp 0x4d0500
inc edi
jmp 0x4d0447
mov al, byte [ebp + 0xb]
test al, al
je 0x4d0504
cmp edi, esi
jge 0x4d053b
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0
call fcn.00483aa0
mov al, byte [ebp - 0x11]
test al, al
jne 0x4d0532
mov eax, dword [ebx + 0x410]
push esi
push 0x1413
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x4d05e4
cmp edi, esi
mov byte [ebp - 0x11], 1
jne 0x4d054a
mov eax, 1
jmp 0x4d0558
lea eax, [ebp - 0x124]
mov ecx, ebx
push eax
call fcn.004d9910
lea ecx, [ebp - 0x124]
push ecx
push edi
push eax
push 0x1e
mov ecx, ebx
call fcn.004d0760
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x258]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x4d0590
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0
call fcn.00483aa0
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x4d05e4
mov edx, dword [ebx + 0x550]
push edx
call fcn.00540860
add esp, 4
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0
call fcn.00483aa0
mov edi, dword [ebp - 0x20]
jmp 0x4cfebe
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret