Function at 0x484fe0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1e13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0x4ec]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
je 0x485784
mov al, byte [ebx + 0x484]
test al, al
jne 0x485784
lea edi, [ebx + 0x400]
push edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x4ec], esi
je 0x48577d
mov al, byte [ebx + 0x484]
test al, al
jne 0x48577d
mov ecx, ebx
call fcn.004943a0
cmp eax, esi
jne 0x48577d
mov eax, dword [ebx + 0x514]
mov ecx, dword [ebx + 0x250]
cmp eax, esi
mov dword [ebp - 0x1c], eax
setne byte [ebp - 0x11]
cmp eax, ecx
jge 0x48577d
cmp dword [ebx + 0x4ec], esi
je 0x48577d
mov al, byte [ebx + 0x484]
test al, al
jne 0x48577d
mov eax, dword [0x65ca8c]
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xac], si
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0x9c], esi
mov word [ebp - 0xa0], si
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x10c], 0x5bb0e4
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 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 0x4855bf
lea eax, [ebp - 0x10c]
lea esi, [ebx + 8]
push 0
push eax
push edi
mov ecx, esi
call fcn.0055c420
test al, al
je 0x4853cd
cmp byte [ebp - 0xcf], 1
jne 0x4853cd
mov al, byte [ebp - 0xcc]
test al, al
je 0x4853cd
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, ebx
call fcn.0048d3d0
test eax, eax
jne 0x485195
lea edx, [ebp - 0x10c]
mov ecx, ebx
push edx
call fcn.0048d100
test eax, eax
jne 0x485195
test edi, edi
jne 0x4853cd
cmp byte [ebp - 0xd0], 3
jne 0x485317
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x485317
mov ecx, dword [ebx + 0x4e4]
mov eax, dword [ebx + 0x41c]
push 0
push 0x1430
inc ecx
push 0x111
push eax
mov byte [ebp - 0xcf], 0
mov byte [ebp - 0xc0], 1
mov dword [ebx + 0x4e4], ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0xec]
test eax, eax
je 0x4851f9
mov al, byte [ebx + 0x287]
test al, al
je 0x4851f9
xor esi, esi
jmp 0x485269
mov eax, dword [ebp - 0xb0]
test eax, eax
jne 0x485209
lea eax, [ebp - 0xac]
push 0x5c
push eax
call fcn.0056b10e
add esp, 8
test eax, eax
je 0x48521d
add eax, 2
jmp 0x48522d
mov eax, dword [ebp - 0xb0]
test eax, eax
jne 0x48522d
lea eax, [ebp - 0xac]
test edi, edi
sete cl
push ecx
push eax
mov ecx, ebx
call fcn.00489a30
mov esi, eax
test esi, esi
je 0x485269
lea edx, [ebp - 0x10c]
mov ecx, ebx
push edx
call fcn.0048d3d0
mov esi, eax
test esi, esi
je 0x485269
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.0048d620
mov esi, eax
test esi, esi
jne 0x485270
mov byte [ebp - 0xcc], 0
lea ecx, [ebp - 0x10c]
push ecx
push edi
lea ecx, [ebx + 8]
call fcn.0055d9a0
test esi, esi
je 0x4852a5
mov eax, dword [ebx + 0x4d0]
mov edx, dword [ebx + 0x41c]
inc eax
push eax
push 0x1401
push 0x111
mov dword [ebx + 0x4d0], eax
push edx
jmp 0x4852b7
mov eax, dword [ebx + 0x41c]
push edi
push 0x13fe
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebx + 0x544]
push edi
push 0
push 0x140e
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x250]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x4853cd
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x10c]
mov dword [ebx + 0x47c], edi
mov byte [ebp - 4], 0
call fcn.004511f0
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 - 0x10c]
mov ecx, esi
push eax
push edi
mov byte [ebp - 0xcf], 2
call fcn.0055d9a0
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0x54]
push 1
push ecx
push edx
push eax
lea ecx, [ebx + 0x2f0]
mov byte [ebp - 4], 2
call fcn.00415580
test eax, eax
je 0x48557d
mov al, byte [ebp - 0x2b]
test al, al
je 0x48557d
lea ecx, [ebp - 0x10c]
push 1
push ecx
push edi
mov ecx, ebx
call fcn.00492c10
mov esi, eax
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x4853d8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00586b33
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00586b33
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00586b33
inc edi
xor esi, esi
mov dword [ebp - 0x18], edi
jmp 0x485126
mov edx, dword [ebx + 0x4b0]
push edi
push edx
push 0
lea ecx, [esi + 0x20]
call fcn.005468d0
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp - 0x50]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x48557d
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 0x485428
push edx
lea edx, [esi + 0xe4]
push 0x636fa0
push edx
call fcn.0057f8fb
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x86c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esi + 0x408], ecx
mov edx, dword [ebp - 0x38]
mov dword [esi + 0x40c], edx
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x748], 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 0x48549d
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00582ecc
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 [0x661510]
push esi
mov byte [ebp - 0xc3], 1
call fcn.004bfb50
push 0
mov ecx, esi
call fcn.0053cdc0
push esi
call fcn.0046cbb0
mov ecx, dword [0x661514]
mov byte [esi + 0x870], 1
mov dword [esi], ecx
mov al, byte [ebx + 0x288]
add esp, 4
test al, al
je 0x485506
mov eax, dword [ebx + 0x4d8]
mov edx, dword [ebx + 0x4b0]
mov edi, dword [ebp - 0x18]
inc eax
mov byte [ebp - 0xc2], 1
mov dword [ebx + 0x4d8], eax
mov dword [esi + 0x880], edx
mov dword [esi + 0x884], edi
jmp 0x485509
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10c]
lea ecx, [ebx + 8]
push eax
push edi
call fcn.0055d9a0
push edi
mov ecx, ebx
call fcn.0048c9f0
mov ecx, dword [ebp - 0x50]
push ecx
push 0
push edi
mov ecx, ebx
call fcn.00487d40
mov byte [ebp - 0x11], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.00586b33
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.00586b33
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.00586b33
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 7
call fcn.00586b33
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00586b33
mov edi, dword [ebp - 0x18]
inc edi
xor esi, esi
mov dword [ebp - 0x18], edi
jmp 0x485126
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.00586b33
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.00586b33
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00586b33
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xb
call fcn.00586b33
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00586b33
xor esi, esi
mov al, byte [ebp + 0xb]
mov dword [ebx + 0x47c], edi
test al, al
jne 0x48569a
mov edi, dword [ebx + 0x480]
cmp edi, dword [ebx + 0xb0]
jge 0x485693
lea edx, [ebp - 0x10c]
lea esi, [ebx + 8]
push 0
push edx
push edi
mov ecx, esi
call fcn.0055c420
test al, al
je 0x48568b
cmp byte [ebp - 0xcf], 3
jne 0x48568b
mov al, byte [ebp - 0xcc]
test al, al
jne 0x485619
test edi, edi
jne 0x48568b
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.0048d3d0
test eax, eax
jne 0x485641
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, ebx
call fcn.0048d100
test eax, eax
jne 0x485641
test edi, edi
jne 0x48568b
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x48566b
mov cl, byte [eax + ecx - 1]
cmp cl, 0x27
je 0x48565c
cmp cl, 0x22
jne 0x48566b
dec eax
push 0
push eax
lea ecx, [ebp - 0xbc]
call fcn.00587013
lea edx, [ebp - 0x10c]
mov ecx, esi
push edx
push edi
mov byte [ebp - 0xcf], 5
call fcn.0055d9a0
mov dword [ebx + 0x480], edi
xor esi, esi
jmp 0x48569a
inc edi
xor esi, esi
jmp 0x4855d6
mov al, byte [ebp + 0xb]
test al, al
je 0x48569e
cmp edi, esi
jge 0x4856d5
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0
call fcn.004511f0
mov al, byte [ebp - 0x11]
test al, al
jne 0x4856cc
mov eax, dword [ebx + 0x418]
push esi
push 0x1413
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x48577e
cmp edi, esi
mov byte [ebp - 0x11], 1
jne 0x4856e4
mov eax, 1
jmp 0x4856f2
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.0048d100
lea ecx, [ebp - 0x10c]
push ecx
push edi
push eax
push 0x1e
mov ecx, ebx
call fcn.00485900
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x250]
inc eax
cmp eax, ecx
mov dword [ebp - 0x1c], eax
jl 0x48572a
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0
call fcn.004511f0
mov ecx, dword [ebp - 0x20]
push ecx
jmp 0x48577e
mov edx, dword [ebx + 0x548]
push edx
call fcn.004dc2f0
add esp, 4
lea ecx, [ebp - 0x10c]
mov byte [ebp - 4], 0
call fcn.004511f0
mov edi, dword [ebp - 0x20]
jmp 0x48507e
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